You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Correct 2.6 erroneous ifelse detection
This commit is contained in:
@@ -97,6 +97,10 @@ class Python24Parser(Python25Parser):
|
||||
if self.version[:2] == (2, 4):
|
||||
self.check_reduce['nop_stmt'] = 'tokens'
|
||||
|
||||
if self.version[:2] <= (2, 4):
|
||||
# TODO: We may add something different or customize something
|
||||
del self.reduce_check_table["ifelsestmt"]
|
||||
|
||||
def reduce_is_invalid(self, rule, ast, tokens, first, last):
|
||||
invalid = super(Python24Parser,
|
||||
self).reduce_is_invalid(rule, ast,
|
||||
|
Reference in New Issue
Block a user