summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-10-19 20:15:58 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-10-19 20:15:58 (GMT)
commit34d33a595b2e8f0736e5f05b43ddcbabb57b72be (patch)
treeee38151a07956717989ee58ee55c36586fa8f237 /Python
parenta8a38b8e4f6a4273cfda8480458447f91310edf6 (diff)
downloadcpython-34d33a595b2e8f0736e5f05b43ddcbabb57b72be.zip
cpython-34d33a595b2e8f0736e5f05b43ddcbabb57b72be.tar.gz
cpython-34d33a595b2e8f0736e5f05b43ddcbabb57b72be.tar.bz2
removal u_qualname, since compiler_scope_qualname is only ever called once
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 9176e31..eeccd11 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -104,7 +104,6 @@ struct compiler_unit {
PySTEntryObject *u_ste;
PyObject *u_name;
- PyObject *u_qualname; /* dot-separated qualified name (lazy) */
int u_scope_type;
/* The following fields are dicts that map objects to
@@ -507,7 +506,6 @@ compiler_unit_free(struct compiler_unit *u)
}
Py_CLEAR(u->u_ste);
Py_CLEAR(u->u_name);
- Py_CLEAR(u->u_qualname);
Py_CLEAR(u->u_consts);
Py_CLEAR(u->u_names);
Py_CLEAR(u->u_varnames);
@@ -660,11 +658,6 @@ compiler_scope_qualname(struct compiler *c, identifier scope_name)
PyObject *capsule, *name, *seq, *dot_str, *locals_str;
u = c->u;
- if (u->u_qualname != NULL) {
- Py_INCREF(u->u_qualname);
- return u->u_qualname;
- }
-
seq = PyList_New(0);
if (seq == NULL)
return NULL;
@@ -714,7 +707,6 @@ compiler_scope_qualname(struct compiler *c, identifier scope_name)
goto _error;
name = PyUnicode_Join(dot_str, seq);
Py_DECREF(seq);
- u->u_qualname = name;
Py_XINCREF(name);
return name;