summaryrefslogtreecommitdiffstats
path: root/Lib/trace.py
diff options
context:
space:
mode:
authorKyle Altendorf <sda@fstab.net>2018-02-17 06:32:37 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-02-17 06:32:37 (GMT)
commit9f4223261fd129ad7b9a09b2b0d625d1bb90b22b (patch)
tree4e0060662acd684de7e7ce01d8e561998e6f36c8 /Lib/trace.py
parent243d6d71265be1996a8326002deae429106a5fba (diff)
downloadcpython-9f4223261fd129ad7b9a09b2b0d625d1bb90b22b.zip
cpython-9f4223261fd129ad7b9a09b2b0d625d1bb90b22b.tar.gz
cpython-9f4223261fd129ad7b9a09b2b0d625d1bb90b22b.tar.bz2
bpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)
Diffstat (limited to 'Lib/trace.py')
-rwxr-xr-xLib/trace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index 48a1d1b..ade7616 100755
--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -705,7 +705,7 @@ def main():
if opts.filename is None:
parser.error('filename is missing: required with the main options')
- sys.argv = opts.filename, *opts.arguments
+ sys.argv = [opts.filename, *opts.arguments]
sys.path[0] = os.path.dirname(opts.filename)
t = Trace(opts.count, opts.trace, countfuncs=opts.listfuncs,