We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e39a902 commit ecab7d7Copy full SHA for ecab7d7
uncompyle6/semantics/pysource.py
@@ -1827,9 +1827,15 @@ def n_unpack(self, node):
1827
self.write(', ')
1828
self.prune()
1829
return
1830
+
1831
for n in node[1:]:
1832
if n[0].kind == 'unpack':
1833
n[0].kind = 'unpack_w_parens'
1834
1835
+ # In Python 2.4, unpack is used in (a, b, c) of:
1836
+ # except RuntimeError, (a, b, c):
1837
+ if self.version < 2.7:
1838
+ node.kind = 'unpack_w_parens'
1839
self.default(node)
1840
1841
n_unpack_w_parens = n_unpack
0 commit comments