Skip to content

Commit 58dd30c

Browse files
committed
Apply changes from review
1 parent c87ffb6 commit 58dd30c

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Parser/asdl_c.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,7 @@ def visitModule(self, mod):
10641064
return NULL;
10651065
}
10661066
1067-
PyObject *dict = NULL, *fields = NULL, *remaining_fields = NULL,
1068-
*positional_args = NULL;
1067+
PyObject *dict = NULL, *fields = NULL, *positional_args = NULL;
10691068
if (PyObject_GetOptionalAttr(self, state->__dict__, &dict) < 0) {
10701069
return NULL;
10711070
}
@@ -1118,8 +1117,7 @@ def visitModule(self, mod):
11181117
if (!args_tuple) {
11191118
goto cleanup;
11201119
}
1121-
result = Py_BuildValue("ONN", Py_TYPE(self), args_tuple,
1122-
dict);
1120+
result = Py_BuildValue("ONN", Py_TYPE(self), args_tuple, dict);
11231121
}
11241122
else {
11251123
result = Py_BuildValue("O()N", Py_TYPE(self), dict);
@@ -1130,7 +1128,6 @@ def visitModule(self, mod):
11301128
}
11311129
cleanup:
11321130
Py_XDECREF(fields);
1133-
Py_XDECREF(remaining_fields);
11341131
Py_XDECREF(positional_args);
11351132
return result;
11361133
}

Python/Python-ast.c

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)