Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70d86bd

Browse files
committed
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.
1 parent 661161e commit 70d86bd

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@ Christopher Smith
899899
Gregory P. Smith
900900
Mark Smith
901901
Rafal Smotrzyk
902+
Eric Snow
902903
Dirk Soede
903904
Paul Sokolovsky
904905
Cody Somerville

Parser/asdl_c.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def emit_identifier(self, name):
9292
name = str(name)
9393
if name in self.identifiers:
9494
return
95-
self.emit("_Py_identifier(%s);" % name, 0)
95+
self.emit("_Py_IDENTIFIER(%s);" % name, 0)
9696
self.identifiers.add(name)
9797

9898
def emit(self, s, depth, reflow=True):
@@ -606,7 +606,7 @@ def visitModule(self, mod):
606606
static int
607607
ast_type_init(PyObject *self, PyObject *args, PyObject *kw)
608608
{
609-
_Py_identifier(_fields);
609+
_Py_IDENTIFIER(_fields);
610610
Py_ssize_t i, numfields = 0;
611611
int res = -1;
612612
PyObject *key, *value, *fields;
@@ -660,7 +660,7 @@ def visitModule(self, mod):
660660
ast_type_reduce(PyObject *self, PyObject *unused)
661661
{
662662
PyObject *res;
663-
_Py_identifier(__dict__);
663+
_Py_IDENTIFIER(__dict__);
664664
PyObject *dict = _PyObject_GetAttrId(self, &PyId___dict__);
665665
if (dict == NULL) {
666666
if (PyErr_ExceptionMatches(PyExc_AttributeError))

0 commit comments

Comments
 (0)