summaryrefslogtreecommitdiffstats
path: root/Tools/unicode/mkstringprep.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/unicode/mkstringprep.py')
-rw-r--r--Tools/unicode/mkstringprep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/unicode/mkstringprep.py b/Tools/unicode/mkstringprep.py
index 2525f9e..5be44c9 100644
--- a/Tools/unicode/mkstringprep.py
+++ b/Tools/unicode/mkstringprep.py
@@ -37,7 +37,7 @@ def compact_set(l):
tuple.append((prev,prev+span+1))
else:
single.append(prev)
- tuple = " + ".join(["range(%d,%d)" % t for t in tuple])
+ tuple = " + ".join(["list(range(%d,%d))" % t for t in tuple])
if not single:
return "set(%s)" % tuple
if not tuple: