mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Make names generated for 'with' variables match the built-in compiler.
This commit is contained in:
parent
8be8765a2e
commit
98c3b85bc4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue