You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Pyton 3.1 Annotation args can be unicode?
This commit is contained in:
@@ -889,7 +889,8 @@ class Python3Parser(PythonParser):
|
|||||||
elif lhs == 'annotate_tuple':
|
elif lhs == 'annotate_tuple':
|
||||||
return not isinstance(tokens[first].attr, tuple)
|
return not isinstance(tokens[first].attr, tuple)
|
||||||
elif lhs == 'kwarg':
|
elif lhs == 'kwarg':
|
||||||
return not isinstance(tokens[first].attr, str)
|
arg = tokens[first].attr
|
||||||
|
return not (isinstance(arg, str) or isinstance(arg, unicode))
|
||||||
elif lhs == 'while1elsestmt':
|
elif lhs == 'while1elsestmt':
|
||||||
# if SETUP_LOOP target spans the else part, then this is
|
# if SETUP_LOOP target spans the else part, then this is
|
||||||
# not while1else. Also do for whileTrue?
|
# not while1else. Also do for whileTrue?
|
||||||
|
Reference in New Issue
Block a user