Skip to content

Commit 3942689

Browse files
Remove python pipes module dependency
Remove `pipes` dependency as it is no longer part of the python standard library in the latest version. Replace with `shlex` module which is always available in python3.
1 parent 5fdb82c commit 3942689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import multiprocessing
1717
import os
1818
import pathlib
19-
import pipes
19+
import shlex
2020
import platform
2121
import signal
2222
import subprocess
@@ -119,7 +119,7 @@ def shell_join(command):
119119
>>> shell_join(['echo', 'Hello, World!'])
120120
"echo 'Hello, World!'"
121121
"""
122-
return ' '.join([pipes.quote(x) for x in command])
122+
return ' '.join([shlex.quote(x) for x in command])
123123

124124

125125
def debug_print(s, stderr=sys.stderr):

0 commit comments

Comments
 (0)