mirror of
https://github.com/davidhalter/jedi.git
synced 2026-09-22 22:03:16 +08:00
handle *args arguments the right way.
This commit is contained in:
@@ -191,3 +191,9 @@ def literal_eval(string):
|
||||
if re.match('[uU][\'"]', string):
|
||||
string = string[1:]
|
||||
return ast.literal_eval(string)
|
||||
|
||||
|
||||
try:
|
||||
from itertools import zip_longest
|
||||
except ImportError:
|
||||
from itertools import izip_longest as zip_longest # Python 2
|
||||
|
||||
Reference in New Issue
Block a user