Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@ def cmp(x, y): # Python 3
xrange = range # Python 3

try:
import urllib.parse # Python 3
urllib_unquote = urllib.parse.unquote
from urllib.parse import unquote # Python 3
except ImportError:
import urllib # Python 2
urllib_unquote = urllib.unquote
from urllib import unquote # Python 2

Comment thread
thefourtheye marked this conversation as resolved.

logger = logging.getLogger('testrunner')
Expand Down Expand Up @@ -1485,8 +1483,8 @@ def ExpandCommand(args):
return ExpandCommand
else:
pos = value.find('@')
prefix = urllib_unquote(value[:pos]).split()
suffix = urllib_unquote(value[pos+1:]).split()
prefix = unquote(value[:pos]).split()
suffix = unquote(value[pos+1:]).split()
Comment thread
thefourtheye marked this conversation as resolved.
Outdated
def ExpandCommand(args):
return prefix + args + suffix
return ExpandCommand
Expand Down