@@ -910,7 +910,7 @@ deque_rotate(dequeobject *deque, PyObject *const *args, Py_ssize_t nargs)
910910}
911911
912912PyDoc_STRVAR (rotate_doc ,
913- "rotate(n)\n\n "
913+ "rotate(n)\n"
914914"Rotate the deque *n* steps to the right (default ``n=1``). "
915915"If *n* is negative, rotates left." );
916916
@@ -953,7 +953,7 @@ deque_reverse(dequeobject *deque, PyObject *unused)
953953}
954954
955955PyDoc_STRVAR (reverse_doc ,
956- "reverse()\n\n "
956+ "reverse()\n"
957957"Reverse the elements of the deque *IN PLACE*." );
958958
959959static PyObject *
@@ -993,7 +993,7 @@ deque_count(dequeobject *deque, PyObject *v)
993993}
994994
995995PyDoc_STRVAR (count_doc ,
996- "count(x) -> int\n\n "
996+ "count(x) -> int\n"
997997"Count the number of deque elements equal to *x*." );
998998
999999static int
@@ -1102,7 +1102,7 @@ deque_index(dequeobject *deque, PyObject *const *args, Py_ssize_t nargs)
11021102}
11031103
11041104PyDoc_STRVAR (index_doc ,
1105- "index(x, [start, [stop]]) -> int\n\n "
1105+ "index(x, [start, [stop]]) -> int\n"
11061106"Return the position of *x* in the deque "
11071107"(at or after index *start* and before index *stop*). "
11081108"Returns the first match or raises a ValueError if not found." );
@@ -1150,11 +1150,11 @@ deque_insert(dequeobject *deque, PyObject *const *args, Py_ssize_t nargs)
11501150}
11511151
11521152PyDoc_STRVAR (insert_doc ,
1153- "insert(i, x)\n\n "
1153+ "insert(i, x)\n"
11541154"Insert *x* into the deque at position *i*." );
11551155
11561156PyDoc_STRVAR (remove_doc ,
1157- "remove(x)\n\n "
1157+ "remove(x)\n"
11581158"Remove the first occurrence of *x*."
11591159"If not found, raises a ValueError." );
11601160
@@ -1527,7 +1527,7 @@ deque_sizeof(dequeobject *deque, void *unused)
15271527}
15281528
15291529PyDoc_STRVAR (sizeof_doc ,
1530- "__sizeof__() -> int\n\n "
1530+ "__sizeof__() -> int\n"
15311531"Size of the deque in memory, in bytes." );
15321532
15331533static PyObject *
@@ -1563,7 +1563,7 @@ static PySequenceMethods deque_as_sequence = {
15631563static PyObject * deque_iter (dequeobject * deque );
15641564static PyObject * deque_reviter (dequeobject * deque , PyObject * Py_UNUSED (ignored ));
15651565PyDoc_STRVAR (reversed_doc ,
1566- "__reversed__()\n\n "
1566+ "__reversed__()\n"
15671567"Return a reverse iterator over the deque." );
15681568
15691569static PyMethodDef deque_methods [] = {
@@ -1609,7 +1609,7 @@ static PyMethodDef deque_methods[] = {
16091609};
16101610
16111611PyDoc_STRVAR (deque_doc ,
1612- "deque([iterable[, maxlen]]) -> collections.deque\n\n "
1612+ "deque([iterable[, maxlen]]) -> collections.deque\n"
16131613"A list-like sequence optimized for data accesses near its endpoints." );
16141614
16151615static PyTypeObject deque_type = {
@@ -1989,7 +1989,7 @@ new_defdict(defdictobject *dd, PyObject *arg)
19891989 dd -> default_factory ? dd -> default_factory : Py_None , arg , NULL );
19901990}
19911991
1992- PyDoc_STRVAR (defdict_copy_doc , "copy() -> collections.deque\n\n "
1992+ PyDoc_STRVAR (defdict_copy_doc , "copy() -> collections.deque\n"
19931993"A shallow copy of the deque." );
19941994
19951995static PyObject *
0 commit comments