You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Start 3.3 positional and kw parameters
Semantic routines need more work.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user