You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Small "not" bug in prior commit
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Self-checking test.
|
# Self-checking test.
|
||||||
# Python 3 bug in not detecting the end bounds of if elif.
|
# Python 3 bug in not detecting the end bounds of if elif.
|
||||||
|
|
||||||
|
# RUNNABLE!
|
||||||
def testit(b):
|
def testit(b):
|
||||||
if b == 1:
|
if b == 1:
|
||||||
a = 1
|
a = 1
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
# Bug in 3.6 and above.
|
# Bug in 3.6 and above.
|
||||||
#Not detecting 2nd return is outside of
|
#Not detecting 2nd return is outside of
|
||||||
# if/then. Fix was to ensure COME_FROM
|
# if/then. Fix was to ensure COME_FROM
|
||||||
|
|
||||||
|
# RUNNABLE!
|
||||||
def return_return_bug(foo):
|
def return_return_bug(foo):
|
||||||
if foo == 'say_hello':
|
if foo == 'say_hello':
|
||||||
return "hello"
|
return "hello"
|
||||||
|
@@ -80,7 +80,7 @@ class TreeTransform(GenericASTTraversal, object):
|
|||||||
|
|
||||||
if ifstmts_jump == "_ifstmts_jumpl" and ifstmts_jump[0] == "_ifstmts_jump":
|
if ifstmts_jump == "_ifstmts_jumpl" and ifstmts_jump[0] == "_ifstmts_jump":
|
||||||
ifstmts_jump = ifstmts_jump[0]
|
ifstmts_jump = ifstmts_jump[0]
|
||||||
elif ifstmts_jump in ("_ifstmts_jump", "ifstmts_jumpl"):
|
elif ifstmts_jump not in ("_ifstmts_jump", "ifstmts_jumpl"):
|
||||||
return node
|
return node
|
||||||
stmts = ifstmts_jump[0]
|
stmts = ifstmts_jump[0]
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user