Pyton 3.1 Annotation args can be unicode?

This commit is contained in:
rocky
2017-09-26 09:31:04 -04:00
parent 7b38d2f1f8
commit 114f979555

View File

@@ -889,7 +889,8 @@ class Python3Parser(PythonParser):
elif lhs == 'annotate_tuple':
return not isinstance(tokens[first].attr, tuple)
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':
# if SETUP_LOOP target spans the else part, then this is
# not while1else. Also do for whileTrue?