diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2012-07-01 22:01:22 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-07-01 22:01:22 (GMT) |
| commit | e970dc757cc2795e5dabf542fd002b540b3d7bc2 (patch) | |
| tree | 6df66247981b6c89a497918c397c301c6e8858ee /Lib/compiler/symbols.py | |
| parent | e683ef55fca11d940794dde000d554e2b6c8f513 (diff) | |
| download | cpython-e970dc757cc2795e5dabf542fd002b540b3d7bc2.zip cpython-e970dc757cc2795e5dabf542fd002b540b3d7bc2.tar.gz cpython-e970dc757cc2795e5dabf542fd002b540b3d7bc2.tar.bz2 | |
Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT).
Patch by Arfrever.
Diffstat (limited to 'Lib/compiler/symbols.py')
| -rw-r--r-- | Lib/compiler/symbols.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/compiler/symbols.py b/Lib/compiler/symbols.py index 0bbdc71..afeec50 100644 --- a/Lib/compiler/symbols.py +++ b/Lib/compiler/symbols.py @@ -1,7 +1,7 @@ """Module symbol-table generator""" from compiler import ast -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, SC_UNKNOWN from compiler.misc import mangle import types @@ -90,7 +90,7 @@ class Scope: The scope of a name could be LOCAL, GLOBAL, FREE, or CELL. """ if name in self.globals: - return SC_GLOBAL_EXPLICT + return SC_GLOBAL_EXPLICIT if name in self.cells: return SC_CELL if name in self.defs: |
