]> granicus.if.org Git - python/commitdiff
Issue 13243: Rename _Py_identifier to _Py_IDENTIFIER in asdl_c.py
authorMeador Inge <meadori@gmail.com>
Sat, 22 Oct 2011 19:06:50 +0000 (14:06 -0500)
committerMeador Inge <meadori@gmail.com>
Sat, 22 Oct 2011 19:06:50 +0000 (14:06 -0500)
Parser/asdl_c.py was missed in commit 7109f31300fb when _Py_identifier
was replaced with _Py_IDENTIFIER.  Thanks to Eric Snow for the patch.

Misc/ACKS
Parser/asdl_c.py

index 08531b9c660dc29d11ec43483071ed56ec26e291..e3e788e7c0b50e36b5126d56de6a66ea892c2c69 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -899,6 +899,7 @@ Christopher Smith
 Gregory P. Smith
 Mark Smith
 Rafal Smotrzyk
+Eric Snow
 Dirk Soede
 Paul Sokolovsky
 Cody Somerville
index deff06dd5e9409115dff4cca126ea4c60a569eb7..651348eb9b05bbd7ea3a73ac445ba1d2ba8f3705 100755 (executable)
@@ -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))