Commit 5357c651 authored by Martin v. Löwis's avatar Martin v. Löwis

Convert empty string literal to string. Speed up creation of idmap.

parent bbc0568a
...@@ -34,9 +34,10 @@ punctuation = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" ...@@ -34,9 +34,10 @@ punctuation = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"""
printable = digits + letters + punctuation + whitespace printable = digits + letters + punctuation + whitespace
# Case conversion helpers # Case conversion helpers
_idmap = '' # Use str to convert Unicode literal in case of -U
for i in range(256): _idmap = _idmap + chr(i) l = map(chr, xrange(256))
del i _idmap = str('').join(l)
del l
# Backward compatible names for exceptions # Backward compatible names for exceptions
index_error = ValueError index_error = ValueError
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment