args can be immutable (PY-11465).

This commit is contained in:
Dmitry Trofimov
2013-11-26 19:18:39 +01:00
parent cbcc0e87dc
commit b08500c9d2
+3 -2
View File
@@ -37,8 +37,9 @@ def patch_args(args):
host, port = pydevd.dispatch()
if port is not None:
args[indC + 1] = "import sys; sys.path.append('%s'); import pydevd; pydevd.settrace(host='%s', port=%s, suspend=False); %s"%(helpers, host, port, args[indC + 1])
return args
new_args.extend(args)
new_args[indC + 1] = "import sys; sys.path.append('%s'); import pydevd; pydevd.settrace(host='%s', port=%s, suspend=False); %s"%(helpers, host, port, args[indC + 1])
return new_args
else:
new_args.append(args[0])
else: