summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Objects/stringobject.c2
-rw-r--r--Objects/unicodeobject.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 2fa2b79dd0..8d3403a0c3 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -2806,7 +2806,7 @@ replace(PyStringObject *self,
}
PyDoc_STRVAR(replace__doc__,
-"S.replace (old, new[, count]) -> string\n\
+"S.replace(old, new[, count]) -> string\n\
\n\
Return a copy of string S with all occurrences of substring\n\
old replaced by new. If the optional argument count is\n\
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 0e378a5a40..8b3b861bee 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -7187,7 +7187,7 @@ PyObject *PyUnicode_Replace(PyObject *obj,
}
PyDoc_STRVAR(replace__doc__,
- "S.replace (old, new[, count]) -> unicode\n\
+ "S.replace(old, new[, count]) -> unicode\n\
\n\
Return a copy of S with all occurrences of substring\n\
old replaced by new. If the optional argument count is\n\