From c911bbfd5d18ac14bf24fc7a881883debcc7c7c8 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 7 Nov 2010 19:04:46 +0000 Subject: [PATCH] str, bytes, bytearray docstring: remove unnecessary [...] --- Objects/bytearrayobject.c | 2 +- Objects/bytesobject.c | 2 +- Objects/unicodeobject.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 1a50ce31019..f419eee9559 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -2465,7 +2465,7 @@ bytearray_rstrip(PyByteArrayObject *self, PyObject *args) } PyDoc_STRVAR(decode_doc, -"B.decode([encoding='utf-8'[, errors='strict']]) -> str\n\ +"B.decode(encoding='utf-8', errors='strict') -> str\n\ \n\ Decode B using the codec registered for encoding. Default encoding\n\ is 'utf-8'. errors may be given to set a different error\n\ diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index b8fa8ee255e..96134a3a3fb 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -2289,7 +2289,7 @@ bytes_endswith(PyBytesObject *self, PyObject *args) PyDoc_STRVAR(decode__doc__, -"B.decode([encoding='utf-8'[, errors='strict']]) -> str\n\ +"B.decode(encoding='utf-8', errors='strict') -> str\n\ \n\ Decode B using the codec registered for encoding. Default encoding\n\ is 'utf-8'. errors may be given to set a different error\n\ diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4be0b17c397..cff756a1cec 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -7393,7 +7393,7 @@ unicode_count(PyUnicodeObject *self, PyObject *args) } PyDoc_STRVAR(encode__doc__, - "S.encode([encoding='utf-8'[, errors='strict']]) -> bytes\n\ + "S.encode(encoding='utf-8', errors='strict') -> bytes\n\ \n\ Encode S using the codec registered for encoding. Default encoding\n\ is 'utf-8'. errors may be given to set a different error\n\