Add a test for multi-byte string source

This commit is contained in:
Takafumi Arakaki committed 2012-11-10 19:55:56 +01:00
1 parent 8dd9952288
commit 8b31117faf
2 files changed
+22 -1

No files matched your search

+9
View File
@@ -60,6 +60,15 @@ try:
except NameError:
unicode = str
if is_py3k:
utf8 = lambda s: s
else:
utf8 = lambda s: s.decode('utf-8')
utf8.__doc__ = """
Decode a raw string into unicode object. Do nothing in Python 3.
"""
# exec function
if is_py3k:
def exec_function(source, global_map):