Skip to content

Commit 9d430cd

Browse files
authored
Merge pull request #589 from dlax/shlex-quote
Import quote() from shlex
2 parents d4acdb5 + c3dc94e commit 9d430cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testinfra/backend/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import collections
1414
import locale
1515
import logging
16-
import pipes
16+
import shlex
1717
import subprocess
1818
import urllib.parse
1919

@@ -168,7 +168,7 @@ def get_hosts(cls, host, **kwargs):
168168
@staticmethod
169169
def quote(command, *args):
170170
if args:
171-
return command % tuple(pipes.quote(a) for a in args)
171+
return command % tuple(shlex.quote(a) for a in args)
172172
return command
173173

174174
def get_sudo_command(self, command, sudo_user):

0 commit comments

Comments
 (0)