There was an error while loading. Please reload this page.
AST.__repr__
_fields
1 parent c68ce16 commit 1bfcc3cCopy full SHA for 1bfcc3c
2 files changed
Parser/asdl_c.py
@@ -1480,8 +1480,8 @@ def visitModule(self, mod):
1480
return NULL;
1481
}
1482
1483
- PyObject *fields;
1484
- if (PyObject_GetOptionalAttr((PyObject *)Py_TYPE(self), state->_fields, &fields) < 0) {
+ PyObject *fields = PyObject_GetAttr((PyObject *)Py_TYPE(self), state->_fields);
+ if (!fields) {
1485
1486
1487
Python/Python-ast.c
0 commit comments