We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a20d02 commit 498d331Copy full SHA for 498d331
uncompyle6/semantics/pysource.py
@@ -1262,7 +1262,7 @@ def build_ast(
1262
if (
1263
load_const.kind == "LOAD_CONST"
1264
and load_const.linestart is None
1265
- and load_const.attr is None
+ and ((load_const.pattr is None) if self.version < (3, 0, 0) else (load_const.attr is None))
1266
):
1267
# Delete LOAD_CONST (None) RETURN_VALUE
1268
del tokens[-2:]
0 commit comments