tupples which contain only 1 element need a comma

This commit is contained in:
jiangpch
2016-12-26 15:02:20 +08:00
parent 813229ac45
commit 9aa4e2b9ae

View File

@@ -924,6 +924,8 @@ class SourceWalker(GenericASTTraversal, object):
sep += ' '
pass
pass
if len(tup) == 1:
self.write(", ")
self.write(')')
def n_LOAD_CONST(self, node):