1
0
forked from VimPlug/jedi

Add a test for multi-byte string source

This commit is contained in:
Takafumi Arakaki
2012-11-10 19:55:56 +01:00
parent 8dd9952288
commit 8b31117faf
2 changed files with 22 additions and 1 deletions
+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):