Skip to content

Commit 498d331

Browse files
committed
Fix redundant return for python 2.7
1 parent 9a20d02 commit 498d331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uncompyle6/semantics/pysource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ def build_ast(
12621262
if (
12631263
load_const.kind == "LOAD_CONST"
12641264
and load_const.linestart is None
1265-
and load_const.attr is None
1265+
and ((load_const.pattr is None) if self.version < (3, 0, 0) else (load_const.attr is None))
12661266
):
12671267
# Delete LOAD_CONST (None) RETURN_VALUE
12681268
del tokens[-2:]

0 commit comments

Comments
 (0)