You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
Another 2.6 return_stmt bug
This commit is contained in:
@@ -8,3 +8,15 @@ def initiate_send(self):
|
||||
else:
|
||||
del self.producer_fifo[0]
|
||||
return
|
||||
|
||||
# 2.6.9 contextlib.py
|
||||
# Bug was in return exc, so added:
|
||||
# return_stmt ::= ret_expr RETURN_VALUE_IF come_from_pop
|
||||
|
||||
def __exit__(self, type, value, traceback):
|
||||
try:
|
||||
raise RuntimeError
|
||||
except StopIteration:
|
||||
return exc
|
||||
except:
|
||||
raise
|
||||
|
Reference in New Issue
Block a user