mirror of
https://github.com/python/cpython.git
synced 2025-09-17 14:16:02 +00:00
Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT).
Patch by Arfrever.
This commit is contained in:
parent
e683ef55fc
commit
e970dc757c
3 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue