Parens around constant in method call ..

again.
Note what fails in 2.7 runtests
This commit is contained in:
rocky
2017-12-03 12:25:26 -05:00
parent 5fe8303184
commit f78a3fb92e
3 changed files with 78 additions and 26 deletions

View File

@@ -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)