Skip to content

Commit

Permalink
Fixed bytecode problem with short-circuit booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simpson committed Jan 15, 2001
1 parent aa7178e commit 83f328e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zbytecodehacks/VSExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def insert_code(self, rcode, at = None):
rcode = map(apply, rcode[0], rcode[1])
if at is None:
at = opn
self.code[at:at]=rcode
self.code[at + 1:at + 1] = [self.code[at]]
self.code[at + 1:at + 1] = rcode
del self.code[at]
self.opn = opn + len(rcode)
return rcode

Expand Down

0 comments on commit 83f328e

Please sign in to comment.