summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorMeador Inge <meadori@gmail.com>2011-10-22 19:06:50 (GMT)
committerMeador Inge <meadori@gmail.com>2011-10-22 19:06:50 (GMT)
commit70d86bdef13a860040f74ddba1656879d445dd02 (patch)
tree7c04d973d82427a826201d39df35f3d5521b5208 /Parser
parent661161ed86bb0549dfb171c8268d8727e90d18d1 (diff)
downloadcpython-70d86bdef13a860040f74ddba1656879d445dd02.zip
cpython-70d86bdef13a860040f74ddba1656879d445dd02.tar.gz
cpython-70d86bdef13a860040f74ddba1656879d445dd02.tar.bz2
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.
Diffstat (limited to 'Parser')
-rwxr-xr-xParser/asdl_c.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index deff06d..651348e 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -92,7 +92,7 @@ class EmitVisitor(asdl.VisitorBase):
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 @@ class PyTypesVisitor(PickleVisitor):
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 @@ static PyObject *
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))