mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-02 18:23:23 +08:00
open function builtin for python 3
This commit is contained in:
@@ -58,7 +58,7 @@ except NameError:
|
||||
return s.decode("utf-8")
|
||||
|
||||
# exec function
|
||||
if sys.hexversion > 0x03000000:
|
||||
if sys.hexversion >= 0x03000000:
|
||||
def exec_function(source, global_map):
|
||||
exec(source, global_map)
|
||||
else:
|
||||
@@ -67,7 +67,7 @@ else:
|
||||
|
||||
# tokenize function
|
||||
import tokenize
|
||||
if sys.hexversion > 0x03000000:
|
||||
if sys.hexversion >= 0x03000000:
|
||||
tokenize_func = tokenize.tokenize
|
||||
else:
|
||||
tokenize_func = tokenize.generate_tokens
|
||||
|
||||
Reference in New Issue
Block a user