You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
2.7 grammar bug workaround. Fix docstring bug
This commit is contained in:
@@ -2120,9 +2120,9 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
docstring = ast[i][0][0][0][0].pattr
|
||||
except:
|
||||
docstring = code.co_consts[0]
|
||||
print_docstring(self, indent, docstring)
|
||||
self.println()
|
||||
del ast[i]
|
||||
if print_docstring(self, indent, docstring):
|
||||
self.println()
|
||||
del ast[i]
|
||||
|
||||
|
||||
# the function defining a class normally returns locals(); we
|
||||
|
Reference in New Issue
Block a user