Handle PyPy JUMP_IF_NOT_DEBUG

Update README.rst to note PyPY and reorganize a little
This commit is contained in:
rocky
2016-07-25 09:06:13 -04:00
parent 285444e19a
commit 476eb50868
9 changed files with 50 additions and 20 deletions

View File

@@ -2,14 +2,19 @@
# Bug in 2.6 is having multple COME_FROMs due to the
# "and" in the "if" clause
if __name__:
if __file__ and name:
if __file__ and __name__:
pass
elif name:
elif __name__:
pass
# 2.6.9 transformer.py
# Bug in 2.6 is multple COME_FROMs as a result
# of the "or" in the "assert"
# In PyPy the assert is handled via PyPy's unique JUMP_IF_NOT_DEBUG
# instruction.
# Also note that the "else: pass" is superfluous
if __name__:
pass
elif __file__: