summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c4
-rw-r--r--Objects/weakrefobject.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 66f617e..60cd957 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -8190,8 +8190,8 @@ unicode_upper(PyUnicodeObject *self)
PyDoc_STRVAR(zfill__doc__,
"S.zfill(width) -> str\n\
\n\
-Pad a numeric string x with zeros on the left, to fill a field\n\
-of the specified width. The string x is never truncated.");
+Pad a numeric string S with zeros on the left, to fill a field\n\
+of the specified width. The string S is never truncated.");
static PyObject *
unicode_zfill(PyUnicodeObject *self, PyObject *args)
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c
index 83e63fc..faa0f86 100644
--- a/Objects/weakrefobject.c
+++ b/Objects/weakrefobject.c
@@ -328,7 +328,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;
}