You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Better 1.5 parameter tuple handling...
Tidy README.rst
This commit is contained in:
@@ -2232,7 +2232,10 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
# if lhs is not a UNPACK_TUPLE (or equiv.),
|
||||
# add parenteses to make this a tuple
|
||||
# if node[1][0] not in ('unpack', 'unpack_list'):
|
||||
return "(" + self.traverse(node[1]) + ")"
|
||||
result = self.traverse(node[1])
|
||||
if not (result.startswith("(") and result.endswith(")") ):
|
||||
result = "(%s)" % result
|
||||
return result
|
||||
# return self.traverse(node[1])
|
||||
raise Exception("Can't find tuple parameter " + name)
|
||||
|
||||
|
Reference in New Issue
Block a user