mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
Correct None refcount issue in Mac modules. (Are they
still used?)
This commit is contained in:
parent
c26025c562
commit
5f6861df93
5 changed files with 5 additions and 5 deletions
|
@ -475,7 +475,7 @@ class FSCatalogInfoDefinition(PEP253Mixin, ObjectDefinition):
|
|||
self.argref = "*" # Store FSSpecs, but pass them by address
|
||||
|
||||
def outputCheckNewArg(self):
|
||||
Output("if (itself == NULL) return Py_None;")
|
||||
Output("if (itself == NULL) { Py_INCREF(Py_None); return Py_None; }")
|
||||
|
||||
def output_tp_newBody(self):
|
||||
Output("PyObject *self;");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue