diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-07-02 00:01:22 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-07-02 00:01:22 +0200 |
commit | e970dc757cc2795e5dabf542fd002b540b3d7bc2 (patch) | |
tree | 6df66247981b6c89a497918c397c301c6e8858ee /Lib/compiler/pycodegen.py | |
parent | e683ef55fca11d940794dde000d554e2b6c8f513 (diff) | |
download | cpython-git-e970dc757cc2795e5dabf542fd002b540b3d7bc2.tar.gz |
Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT).
Patch by Arfrever.
Diffstat (limited to 'Lib/compiler/pycodegen.py')
-rw-r--r-- | Lib/compiler/pycodegen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py index 4f2ecf2ae8..6515945f39 100644 --- a/Lib/compiler/pycodegen.py +++ b/Lib/compiler/pycodegen.py @@ -7,7 +7,7 @@ from cStringIO import StringIO from compiler import ast, parse, walk, syntax from compiler import pyassem, misc, future, symbols -from compiler.consts import SC_LOCAL, SC_GLOBAL_IMPLICIT, SC_GLOBAL_EXPLICT, \ +from compiler.consts import SC_LOCAL, SC_GLOBAL_IMPLICIT, SC_GLOBAL_EXPLICIT, \ SC_FREE, SC_CELL from compiler.consts import (CO_VARARGS, CO_VARKEYWORDS, CO_NEWLOCALS, CO_NESTED, CO_GENERATOR, CO_FUTURE_DIVISION, @@ -283,7 +283,7 @@ class CodeGenerator: self.emit(prefix + '_NAME', name) else: self.emit(prefix + '_FAST', name) - elif scope == SC_GLOBAL_EXPLICT: + elif scope == SC_GLOBAL_EXPLICIT: self.emit(prefix + '_GLOBAL', name) elif scope == SC_GLOBAL_IMPLICIT: if not self.optimized: |