handle *args arguments the right way.

This commit is contained in:
Dave Halter
2014-05-29 20:53:51 +02:00
parent b24178b275
commit f4a508ac53
2 changed files with 22 additions and 11 deletions
+6
View File
@@ -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