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.
This commit is contained in:
Meador Inge 2011-10-22 14:06:50 -05:00
parent 661161ed86
commit 70d86bdef1
2 changed files with 4 additions and 3 deletions

View File

@ -899,6 +899,7 @@ Christopher Smith
Gregory P. Smith Gregory P. Smith
Mark Smith Mark Smith
Rafal Smotrzyk Rafal Smotrzyk
Eric Snow
Dirk Soede Dirk Soede
Paul Sokolovsky Paul Sokolovsky
Cody Somerville Cody Somerville

View File

@ -92,7 +92,7 @@ class EmitVisitor(asdl.VisitorBase):
name = str(name) name = str(name)
if name in self.identifiers: if name in self.identifiers:
return return
self.emit("_Py_identifier(%s);" % name, 0) self.emit("_Py_IDENTIFIER(%s);" % name, 0)
self.identifiers.add(name) self.identifiers.add(name)
def emit(self, s, depth, reflow=True): def emit(self, s, depth, reflow=True):
@ -606,7 +606,7 @@ class PyTypesVisitor(PickleVisitor):
static int static int
ast_type_init(PyObject *self, PyObject *args, PyObject *kw) ast_type_init(PyObject *self, PyObject *args, PyObject *kw)
{ {
_Py_identifier(_fields); _Py_IDENTIFIER(_fields);
Py_ssize_t i, numfields = 0; Py_ssize_t i, numfields = 0;
int res = -1; int res = -1;
PyObject *key, *value, *fields; PyObject *key, *value, *fields;
@ -660,7 +660,7 @@ static PyObject *
ast_type_reduce(PyObject *self, PyObject *unused) ast_type_reduce(PyObject *self, PyObject *unused)
{ {
PyObject *res; PyObject *res;
_Py_identifier(__dict__); _Py_IDENTIFIER(__dict__);
PyObject *dict = _PyObject_GetAttrId(self, &PyId___dict__); PyObject *dict = _PyObject_GetAttrId(self, &PyId___dict__);
if (dict == NULL) { if (dict == NULL) {
if (PyErr_ExceptionMatches(PyExc_AttributeError)) if (PyErr_ExceptionMatches(PyExc_AttributeError))