You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 16:59:52 +08:00
Parens around constant in method call ..
again. Note what fails in 2.7 runtests
This commit is contained in:
@@ -1879,7 +1879,8 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
n_unpack_w_parens = n_unpack
|
||||
|
||||
def n_load_attr(self, node):
|
||||
if node[0] == 'LOAD_CONST':
|
||||
if (node[0] == 'LOAD_CONST' or
|
||||
node[0] == 'expr' and node[0][0] == 'LOAD_CONST'):
|
||||
node.kind = 'load_attr_w_parens'
|
||||
self.default(node)
|
||||
|
||||
|
Reference in New Issue
Block a user