You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Bug in using python2 ast checking in python 2.5
This commit is contained in:
@@ -41,8 +41,11 @@ class Python25Parser(Python26Parser):
|
||||
self.check_reduce['tryelsestmt'] = 'tokens'
|
||||
|
||||
def reduce_is_invalid(self, rule, ast, tokens, first, last):
|
||||
super(Python25Parser, self).reduce_is_invalid(rule, ast, tokens, first, last)
|
||||
|
||||
invalid = super(Python25Parser,
|
||||
self).reduce_is_invalid(rule, ast,
|
||||
tokens, first, last)
|
||||
if invalid:
|
||||
return invalid
|
||||
lhs = rule[0]
|
||||
if lhs in ('tryelsestmt', ):
|
||||
# The end of the else part of try/else come_from has to come
|
||||
|
Reference in New Issue
Block a user