mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Patch #1440601: Add col_offset attribute to AST nodes.
This commit is contained in:
parent
3ffa59b137
commit
49c5da1d88
16 changed files with 382 additions and 244 deletions
|
|
@ -715,7 +715,7 @@ build_node_children(PyObject *tuple, node *root, int *line_num)
|
|||
Py_XDECREF(elem);
|
||||
return (0);
|
||||
}
|
||||
err = PyNode_AddChild(root, type, strn, *line_num);
|
||||
err = PyNode_AddChild(root, type, strn, *line_num, 0);
|
||||
if (err == E_NOMEM) {
|
||||
PyMem_DEL(strn);
|
||||
return (node *) PyErr_NoMemory();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue