[Python-checkins] cpython: Issue 13243: Rename _Py_identifier to _Py_IDENTIFIER in asdl_c.py
meador.inge
python-checkins at python.org
Sat Oct 22 21:12:26 CEST 2011
http://hg.python.org/cpython/rev/941d015053c6
changeset: 73053:941d015053c6
user: Meador Inge <meadori at gmail.com>
date: Sat Oct 22 14:06:50 2011 -0500
summary:
Issue 13243: Rename _Py_identifier to _Py_IDENTIFIER in asdl_c.py
Parser/asdl_c.py was missed in commit 7109f31300fb when _Py_identifier
was replaced with _Py_IDENTIFIER. Thanks to Eric Snow for the patch.
files:
Misc/ACKS | 1 +
Parser/asdl_c.py | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -899,6 +899,7 @@
Gregory P. Smith
Mark Smith
Rafal Smotrzyk
+Eric Snow
Dirk Soede
Paul Sokolovsky
Cody Somerville
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -92,7 +92,7 @@
name = str(name)
if name in self.identifiers:
return
- self.emit("_Py_identifier(%s);" % name, 0)
+ self.emit("_Py_IDENTIFIER(%s);" % name, 0)
self.identifiers.add(name)
def emit(self, s, depth, reflow=True):
@@ -606,7 +606,7 @@
static int
ast_type_init(PyObject *self, PyObject *args, PyObject *kw)
{
- _Py_identifier(_fields);
+ _Py_IDENTIFIER(_fields);
Py_ssize_t i, numfields = 0;
int res = -1;
PyObject *key, *value, *fields;
@@ -660,7 +660,7 @@
ast_type_reduce(PyObject *self, PyObject *unused)
{
PyObject *res;
- _Py_identifier(__dict__);
+ _Py_IDENTIFIER(__dict__);
PyObject *dict = _PyObject_GetAttrId(self, &PyId___dict__);
if (dict == NULL) {
if (PyErr_ExceptionMatches(PyExc_AttributeError))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list