[Python-checkins] cpython (2.7): Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to
antoine.pitrou
python-checkins at python.org
Mon Jul 2 00:02:54 CEST 2012
http://hg.python.org/cpython/rev/55130516d1d2
changeset: 77913:55130516d1d2
branch: 2.7
parent: 77906:65dd71ebf28f
user: Antoine Pitrou <solipsis at pitrou.net>
date: Mon Jul 02 00:01:22 2012 +0200
summary:
Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT).
Patch by Arfrever.
files:
Lib/compiler/consts.py | 2 +-
Lib/compiler/pycodegen.py | 4 ++--
Lib/compiler/symbols.py | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Lib/compiler/consts.py b/Lib/compiler/consts.py
--- a/Lib/compiler/consts.py
+++ b/Lib/compiler/consts.py
@@ -5,7 +5,7 @@
SC_LOCAL = 1
SC_GLOBAL_IMPLICIT = 2
-SC_GLOBAL_EXPLICT = 3
+SC_GLOBAL_EXPLICIT = 3
SC_FREE = 4
SC_CELL = 5
SC_UNKNOWN = 6
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py
--- a/Lib/compiler/pycodegen.py
+++ b/Lib/compiler/pycodegen.py
@@ -7,7 +7,7 @@
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 @@
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:
diff --git a/Lib/compiler/symbols.py b/Lib/compiler/symbols.py
--- 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 @@
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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list