From e466e826b3fe3bdb06fd7899066c8620c636ea02 Mon Sep 17 00:00:00 2001 From: rocky Date: Mon, 20 Jan 2020 22:43:20 -0500 Subject: [PATCH] Small bug in 3.6+ in finding class name --- uncompyle6/semantics/customize3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncompyle6/semantics/customize3.py b/uncompyle6/semantics/customize3.py index 1891c5b3..abaee41c 100644 --- a/uncompyle6/semantics/customize3.py +++ b/uncompyle6/semantics/customize3.py @@ -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