You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Past fix of conditional_not bleed into 2.5...
and it shouldn't have
This commit is contained in:
@@ -349,7 +349,7 @@ class Python26Parser(Python2Parser):
|
||||
# For now, we won't let the 2nd 'expr' be a "conditional_not"
|
||||
# However in < 2.6 where we don't have if/else expression it *can*
|
||||
# be.
|
||||
if ast[2][0] == 'conditional_not':
|
||||
if self.version >= 2.6 and ast[2][0] == 'conditional_not':
|
||||
return True
|
||||
|
||||
test_index = last
|
||||
|
Reference in New Issue
Block a user