Browse Source

POP_JUMP_IF_TRUE

master
Ben Kurtovic 10 years ago
parent
commit
cc734344a8
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      prettify.py

+ 7
- 0
prettify.py View File

@@ -147,6 +147,13 @@ def _parse_codestring(codes):
lines.append((indent, "if {0}:".format(test)))
indent += TAB
lines.append((indent, "pass".format(test)))
elif opname == "POP_JUMP_IF_TRUE":
test = _pop(stack)
block_dedent_at.append(arg)
block_else_at.append(arg)
lines.append((indent, "if not ({0}):".format(test)))
indent += TAB
lines.append((indent, "pass".format(test)))
elif opname == "JUMP_ABSOLUTE":
block_dedent_at.append(i)
elif opname == "JUMP_FORWARD":


Loading…
Cancel
Save