Start 3.3 positional and kw parameters

Semantic routines need more work.
This commit is contained in:
rocky
2016-06-19 19:18:45 -04:00
parent bd809dc08b
commit 8b50dda9ef
7 changed files with 22 additions and 4 deletions

View File

@@ -1688,8 +1688,9 @@ class SourceWalker(GenericASTTraversal, object):
pass
if default:
maybe_show_ast_param_default(self.showast, name, default)
result = '%s=%s' % (name, self.traverse(default, indent='') )
value = self.traverse(default, indent='')
maybe_show_ast_param_default(self.showast, name, value)
result = '%s=%s' % (name, value)
if result[-2:] == '= ': # default was 'LOAD_CONST None'
result += 'None'
return result