mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Debugger can't find tox tests, however Run does well (PY-19086)
Do not quote new process arguments on windows without need
This commit is contained in:
@@ -167,8 +167,11 @@ def args_to_str(args):
|
||||
if x.startswith('"') and x.endswith('"'):
|
||||
quoted_args.append(x)
|
||||
else:
|
||||
x = x.replace('"', '\\"')
|
||||
quoted_args.append('"%s"' % x)
|
||||
if ' ' in x:
|
||||
x = x.replace('"', '\\"')
|
||||
quoted_args.append('"%s"' % x)
|
||||
else:
|
||||
quoted_args.append(x)
|
||||
|
||||
return ' '.join(quoted_args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user