You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Fix import and 3.x class bugs...
import x.y as z was failing across all Python versions class decorators for Python 3.0..3.3 was failing reduce 3.x while grammar rules
This commit is contained in:
@@ -1434,6 +1434,8 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
if node == 'classdefdeco2':
|
||||
if self.version >= 3.6:
|
||||
class_name = node[1][1].pattr
|
||||
elif self.version <= 3.3:
|
||||
class_name = node[2][0].pattr
|
||||
else:
|
||||
class_name = node[1][2].pattr
|
||||
buildclass = node
|
||||
|
Reference in New Issue
Block a user