summaryrefslogtreecommitdiff
path: root/Lib/test/pystone.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-03-16 18:27:34 -0400
committerR David Murray <rdmurray@bitdance.com>2011-03-16 18:27:34 -0400
commit676a72be33700a3df9f4930b7b080b800a93b011 (patch)
treeeeb73490e177be33ff1741b4ae6afcad190ff8ad /Lib/test/pystone.py
parenta6101cb3d1d6ebffa18cf7a784bdcaf98ee840d9 (diff)
parenta8ebdf3fd2c681864e0b6b0c6c4364cf6242904d (diff)
downloadcpython-676a72be33700a3df9f4930b7b080b800a93b011.tar.gz
Merge #11401 fix from 3.1.
Diffstat (limited to 'Lib/test/pystone.py')
-rwxr-xr-xLib/test/pystone.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/pystone.py b/Lib/test/pystone.py
index 614551ff64..d7f1ec9b6c 100755
--- a/Lib/test/pystone.py
+++ b/Lib/test/pystone.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
"""
"PYSTONE" Benchmark Program
@@ -72,7 +72,7 @@ BoolGlob = FALSE
Char1Glob = '\0'
Char2Glob = '\0'
Array1Glob = [0]*51
-Array2Glob = list(map(lambda x: x[:], [Array1Glob]*51))
+Array2Glob = [x[:] for x in [Array1Glob]*51]
PtrGlb = None
PtrGlbNext = None