You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Small bug in 3.6+ in finding class name
This commit is contained in:
@@ -200,7 +200,7 @@ def customize_for_version3(self, version):
|
||||
# * subclass_code - the code for the subclass body
|
||||
subclass_info = None
|
||||
if node == "classdefdeco2":
|
||||
if self.version >= 3.6:
|
||||
if self.version >= 3.6 and isinstance(node[1][1].attr, str):
|
||||
class_name = node[1][1].attr
|
||||
elif self.version <= 3.3:
|
||||
class_name = node[2][0].attr
|
||||
|
Reference in New Issue
Block a user