diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2009-02-07 00:13:39 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2009-02-07 00:13:39 (GMT) |
commit | 98c3b85bc4b64307fc12b53210f941c6458bccb5 (patch) | |
tree | 2041487da1861d17d2c5aed90b9a21dc7892d51e | |
parent | 8be8765a2e90bf0b93ce9a1f3cfe8cea61943000 (diff) | |
download | cpython-98c3b85bc4b64307fc12b53210f941c6458bccb5.zip cpython-98c3b85bc4b64307fc12b53210f941c6458bccb5.tar.gz cpython-98c3b85bc4b64307fc12b53210f941c6458bccb5.tar.bz2 |
Make names generated for 'with' variables match the built-in compiler.
-rw-r--r-- | Lib/compiler/pycodegen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py index 808f51f..e7ce1a9 100644 --- a/Lib/compiler/pycodegen.py +++ b/Lib/compiler/pycodegen.py @@ -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') |