[Python-checkins] r86305 - in python/branches/py3k/Objects: bytearrayobject.c bytesobject.c unicodeobject.c

victor.stinner python-checkins at python.org
Sun Nov 7 20:04:46 CET 2010


Author: victor.stinner
Date: Sun Nov  7 20:04:46 2010
New Revision: 86305

Log:
str, bytes, bytearray docstring: remove unnecessary [...]


Modified:
   python/branches/py3k/Objects/bytearrayobject.c
   python/branches/py3k/Objects/bytesobject.c
   python/branches/py3k/Objects/unicodeobject.c

Modified: python/branches/py3k/Objects/bytearrayobject.c
==============================================================================
--- python/branches/py3k/Objects/bytearrayobject.c	(original)
+++ python/branches/py3k/Objects/bytearrayobject.c	Sun Nov  7 20:04:46 2010
@@ -2465,7 +2465,7 @@
 }
 
 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\

Modified: python/branches/py3k/Objects/bytesobject.c
==============================================================================
--- python/branches/py3k/Objects/bytesobject.c	(original)
+++ python/branches/py3k/Objects/bytesobject.c	Sun Nov  7 20:04:46 2010
@@ -2289,7 +2289,7 @@
 
 
 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\

Modified: python/branches/py3k/Objects/unicodeobject.c
==============================================================================
--- python/branches/py3k/Objects/unicodeobject.c	(original)
+++ python/branches/py3k/Objects/unicodeobject.c	Sun Nov  7 20:04:46 2010
@@ -7393,7 +7393,7 @@
 }
 
 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\


More information about the Python-checkins mailing list