#1513299: cleanup some map() uses where a comprehension works better.
diff --git a/Lib/test/pystone.py b/Lib/test/pystone.py
index aad4d8c..d7f1ec9 100755
--- a/Lib/test/pystone.py
+++ b/Lib/test/pystone.py
@@ -72,7 +72,7 @@
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
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 133702e..12197ee 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -276,7 +276,7 @@
digits = digits or [0]
return '-'[:sign] + \
{2: '0b', 8: '0o', 10: '', 16: '0x'}[base] + \
- "".join(map(lambda i: "0123456789abcdef"[i], digits))
+ "".join("0123456789abcdef"[i] for i in digits)
def check_format_1(self, x):
for base, mapper in (8, oct), (10, repr), (16, hex):