[Python-checkins] r81965 - python/branches/py3k/Modules/_struct.c

mark.dickinson python-checkins at python.org
Sun Jun 13 11:17:13 CEST 2010


Author: mark.dickinson
Date: Sun Jun 13 11:17:13 2010
New Revision: 81965

Log:
Remove unnecessary brackets from docstring optional arguments.

Modified:
   python/branches/py3k/Modules/_struct.c

Modified: python/branches/py3k/Modules/_struct.c
==============================================================================
--- python/branches/py3k/Modules/_struct.c	(original)
+++ python/branches/py3k/Modules/_struct.c	Sun Jun 13 11:17:13 2010
@@ -1426,7 +1426,7 @@
 }
 
 PyDoc_STRVAR(s_unpack_from__doc__,
-"S.unpack_from(buffer[, offset=0]) -> (v1, v2, ...)\n\
+"S.unpack_from(buffer, offset=0) -> (v1, v2, ...)\n\
 \n\
 Return a tuple containing values unpacked according to the format\n\
 string S.format.  Requires len(buffer[offset:]) >= S.size.  See\n\
@@ -1891,7 +1891,7 @@
 }
 
 PyDoc_STRVAR(unpack_from_doc,
-"unpack_from(fmt, buffer[, offset=0]) -> (v1, v2, ...)\n\
+"unpack_from(fmt, buffer, offset=0) -> (v1, v2, ...)\n\
 \n\
 Return a tuple containing values unpacked according to the format string\n\
 fmt.  Requires len(buffer[offset:]) >= calcsize(fmt).  See help(struct)\n\


More information about the Python-checkins mailing list