Commit 98c3b85b authored by Neil Schemenauer's avatar Neil Schemenauer

Make names generated for 'with' variables match the built-in compiler.

parent 8be8765a
......@@ -814,8 +814,8 @@ class CodeGenerator:
def visitWith(self, node):
body = self.newBlock()
final = self.newBlock()
valuevar = "$value%d" % self.__with_count
self.__with_count += 1
valuevar = "_[%d]" % self.__with_count
self.set_lineno(node)
self.visit(node.expr)
self.emit('DUP_TOP')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment