summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-09 20:55:01 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-09-09 20:55:01 (GMT)
commit97179b0f58ebb13c6053096dc9fb7aff9f4abf33 (patch)
treea1c433d20d2640655da69e845afb19545d7aa727 /Objects
parentc0f10f34b13a8b70a776015c6be07b913209582f (diff)
downloadcpython-97179b0f58ebb13c6053096dc9fb7aff9f4abf33.zip
cpython-97179b0f58ebb13c6053096dc9fb7aff9f4abf33.tar.gz
cpython-97179b0f58ebb13c6053096dc9fb7aff9f4abf33.tar.bz2
Fix #3634 invalid return value from _weakref.ref(Exception).__init__
Reviewers: Amaury, Antoine, Benjamin
Diffstat (limited to 'Objects')
-rw-r--r--Objects/weakrefobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c
index 5cd9173..9cdd021 100644
--- a/Objects/weakrefobject.c
+++ b/Objects/weakrefobject.c
@@ -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;
}