Make names generated for 'with' variables match the built-in compiler.
This commit is contained in:
parent
8be8765a2e
commit
98c3b85bc4
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue