summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-06-13 09:17:13 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-06-13 09:17:13 (GMT)
commitc6f1396be0a09d44de4ea8415c72c947521229d7 (patch)
tree356a22f0cb1b94baa772283661ee49b4a2a8c898 /Modules/_struct.c
parent0bd003a55e80438bb3db48bc1acf929477105d1c (diff)
downloadcpython-c6f1396be0a09d44de4ea8415c72c947521229d7.zip
cpython-c6f1396be0a09d44de4ea8415c72c947521229d7.tar.gz
cpython-c6f1396be0a09d44de4ea8415c72c947521229d7.tar.bz2
Remove unnecessary brackets from docstring optional arguments.
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r--Modules/_struct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index 7f97255..e1d016b 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -1426,7 +1426,7 @@ s_unpack(PyObject *self, PyObject *input)
}
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 @@ unpack(PyObject *self, PyObject *args)
}
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\