3.7+ imports yet again

This commit is contained in:
rocky
2020-01-05 00:13:53 -05:00
parent d5df411c7a
commit dba95c5200
3 changed files with 23 additions and 1 deletions

View File

@@ -1893,6 +1893,11 @@ class SourceWalker(GenericASTTraversal, object):
self.prune()
return
if node[0] == "UNPACK_SEQUENCE_0":
self.write("[]")
self.prune()
return
for n in node[1:]:
if n[0].kind == "unpack":
n[0].kind = "unpack_w_parens"