mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 13:09:49 +00:00
Small bug in 3.6+ in finding class name
This commit is contained in:
parent
eacc3f5cc7
commit
e466e826b3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user