Browse Source

ranger-termite-termcmd: replace pipes.quote with shlex.quote

Fabian Peter Hammerle 1 year ago
parent
commit
5208fead46
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ranger-termite-termcmd

+ 2 - 2
ranger-termite-termcmd

@@ -17,7 +17,7 @@ ranger/ext/rifle.py:
 however termite expects the entire cmd as one single param
 """
 
-import pipes
+import shlex
 import subprocess
 import sys
 
@@ -25,5 +25,5 @@ assert sys.argv[1] == '-e', sys.argv
 
 subprocess.call([
     'termite',
-    '--exec={}'.format(' '.join(pipes.quote(p) for p in sys.argv[2:])),
+    '--exec={}'.format(' '.join(shlex.quote(p) for p in sys.argv[2:])),
 ])