Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix broken spacing
  • Loading branch information
Jongy committed Oct 27, 2020
commit ecf9d501ca689c09eeffafa7e3d981b3e584ea79
2 changes: 1 addition & 1 deletion Objects/funcobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PyFunction_NewWithQualName(PyObject *code, PyObject *globals, PyObject *qualname
}

/* __module__: If module name is in globals, use it.
Otherwise, use None. */
Otherwise, use None. */
module = PyDict_GetItemWithError(globals, __name__);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now runs before Py_INCREF(globals), not sure if relevant (because our caller should hold a reference to globals, right?)

Can put Py_INCREF(globals) before this call.

if (module) {
Py_INCREF(module);
Expand Down