Skip to content

Commit 340f829

Browse files
authored
Refactor pipes usage with shlex (#24737)
Replace `pipes` usage with `shlex` The pipes module has been deprecated since python 3.11 and got removed in python 3.13 [1] This documentation isn't very helpful because it says to use `subprocess` as a replacement for the pipes module which makes no sense in our case. However, the python2 documentation has some more context about this and it turns out that the `pipes.quote` function has been deprecated and replaced by `shlex.quote` since python 2.7 [2] [1]: https://docs.python.org/3.13/library/pipes.html [2]: https://docs.python.org/2.7/library/pipes.html#pipes.quote
1 parent 4e5ef0d commit 340f829

File tree

1 file changed

+1
-1
lines changed
  • taskcluster/ffios_taskgraph

1 file changed

+1
-1
lines changed

taskcluster/ffios_taskgraph/job.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from taskgraph.util.schema import Schema, taskref_or_string
88
from voluptuous import Required, Optional
99

10-
from pipes import quote as shell_quote
10+
from shlex import quote as shell_quote
1111

1212
secret_schema = {
1313
Required("name"): str,

0 commit comments

Comments
 (0)