Add Python 3.6 setcomp and another call bug

This commit is contained in:
rocky
2018-04-01 07:09:24 -04:00
parent b54be24e14
commit 120412f5a8
7 changed files with 33 additions and 10 deletions

View File

@@ -28,6 +28,7 @@ from xdis.code import iscode
from uncompyle6.parsers.astnode import AST
from uncompyle6.scanners.tok import Token
from uncompyle6.semantics.helper import flatten_list
from spark_parser.ast import GenericASTTraversalPruningException
def customize_for_version(self, is_pypy, version):
if is_pypy:
@@ -672,7 +673,11 @@ def customize_for_version(self, is_pypy, version):
pass
pass
else:
assert False, "Don't know how to untangle dictionary"
self.write("**")
try:
self.default(node)
except GenericASTTraversalPruningException:
pass
self.prec = p
self.indent_less(INDENT_PER_LEVEL)