mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Fix #3634 invalid return value from _weakref.ref(Exception).__init__
Reviewers: Amaury, Antoine, Benjamin
This commit is contained in:
parent
c0f10f34b1
commit
97179b0f58
3 changed files with 12 additions and 1 deletions
|
@ -326,7 +326,7 @@ weakref___init__(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
if (parse_weakref_init_args("__init__", args, kwargs, &tmp, &tmp))
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue