From 498d331677f4659aed99fc3dad7e100e581df46b Mon Sep 17 00:00:00 2001 From: Yiming Wang Date: Fri, 21 Nov 2025 20:28:23 +0800 Subject: [PATCH] Fix redundant return for python 2.7 --- uncompyle6/semantics/pysource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncompyle6/semantics/pysource.py b/uncompyle6/semantics/pysource.py index 5fb77771b..10ed0ba52 100644 --- a/uncompyle6/semantics/pysource.py +++ b/uncompyle6/semantics/pysource.py @@ -1262,7 +1262,7 @@ def build_ast( if ( load_const.kind == "LOAD_CONST" and load_const.linestart is None - and load_const.attr is None + and ((load_const.pattr is None) if self.version < (3, 0, 0) else (load_const.attr is None)) ): # Delete LOAD_CONST (None) RETURN_VALUE del tokens[-2:]