@@ -159,7 +159,7 @@ ins1(PyListObject *self, int where, PyObject *v)
159159 "cannot add more objects to list" );
160160 return -1 ;
161161 }
162-
162+
163163 if (list_resize (self , n + 1 ) == -1 )
164164 return -1 ;
165165
@@ -238,8 +238,8 @@ list_dealloc(PyListObject *op)
238238 }
239239 if (num_free_lists < MAXFREELISTS && PyList_CheckExact (op ))
240240 free_lists [num_free_lists ++ ] = op ;
241- else
242- op -> ob_type -> tp_free ((PyObject * )op );
241+ else
242+ op -> ob_type -> tp_free ((PyObject * )op );
243243 Py_TRASHCAN_SAFE_END (op )
244244}
245245
@@ -545,7 +545,7 @@ list_ass_slice(PyListObject *a, int ilow, int ihigh, PyObject *v)
545545 memcpy (p , & item [ilow ], (ihigh - ilow )* sizeof (PyObject * ));
546546 p += ihigh - ilow ;
547547 if (d < 0 ) {
548- memmove (& item [ihigh + d ], & item [ihigh ],
548+ memmove (& item [ihigh + d ], & item [ihigh ],
549549 (a -> ob_size - ihigh )* sizeof (PyObject * ));
550550 list_resize (a , a -> ob_size + d );
551551 item = a -> ob_item ;
@@ -617,7 +617,7 @@ list_inplace_repeat(PyListObject *self, int n)
617617 return (PyObject * )self ;
618618 }
619619
620- if (list_resize (self , size * n ) == -1 )
620+ if (list_resize (self , size * n ) == -1 )
621621 return NULL ;
622622
623623 p = size ;
@@ -682,8 +682,8 @@ listextend(PyListObject *self, PyObject *b)
682682 PyObject * (* iternext )(PyObject * );
683683
684684 /* Special cases:
685- 1) lists and tuples which can use PySequence_Fast ops
686- 2) extending self to self requires making a copy first
685+ 1) lists and tuples which can use PySequence_Fast ops
686+ 2) extending self to self requires making a copy first
687687 */
688688 if (PyList_CheckExact (b ) || PyTuple_CheckExact (b ) || (PyObject * )self == b ) {
689689 PyObject * * src , * * dest ;
@@ -1721,9 +1721,9 @@ merge_compute_minrun(int n)
17211721
17221722/* Special wrapper to support stable sorting using the decorate-sort-undecorate
17231723 pattern. Holds a key which is used for comparisions and the original record
1724- which is returned during the undecorate phase. By exposing only the key
1725- during comparisons, the underlying sort stability characteristics are left
1726- unchanged. Also, if a custom comparison function is used, it will only see
1724+ which is returned during the undecorate phase. By exposing only the key
1725+ during comparisons, the underlying sort stability characteristics are left
1726+ unchanged. Also, if a custom comparison function is used, it will only see
17271727 the key instead of a full record. */
17281728
17291729typedef struct {
@@ -1738,7 +1738,7 @@ static PyObject *
17381738sortwrapper_richcompare (sortwrapperobject * a , sortwrapperobject * b , int op )
17391739{
17401740 if (!PyObject_TypeCheck (b , & sortwrapper_type )) {
1741- PyErr_SetString (PyExc_TypeError ,
1741+ PyErr_SetString (PyExc_TypeError ,
17421742 "expected a sortwrapperobject" );
17431743 return NULL ;
17441744 }
@@ -1777,7 +1777,7 @@ static PyTypeObject sortwrapper_type = {
17771777 PyObject_GenericGetAttr , /* tp_getattro */
17781778 0 , /* tp_setattro */
17791779 0 , /* tp_as_buffer */
1780- Py_TPFLAGS_DEFAULT |
1780+ Py_TPFLAGS_DEFAULT |
17811781 Py_TPFLAGS_HAVE_RICHCOMPARE , /* tp_flags */
17821782 sortwrapper_doc , /* tp_doc */
17831783 0 , /* tp_traverse */
@@ -1792,7 +1792,7 @@ static PyObject *
17921792build_sortwrapper (PyObject * key , PyObject * value )
17931793{
17941794 sortwrapperobject * so ;
1795-
1795+
17961796 so = PyObject_New (sortwrapperobject , & sortwrapper_type );
17971797 if (so == NULL )
17981798 return NULL ;
@@ -1808,7 +1808,7 @@ sortwrapper_getvalue(PyObject *so)
18081808 PyObject * value ;
18091809
18101810 if (!PyObject_TypeCheck (so , & sortwrapper_type )) {
1811- PyErr_SetString (PyExc_TypeError ,
1811+ PyErr_SetString (PyExc_TypeError ,
18121812 "expected a sortwrapperobject" );
18131813 return NULL ;
18141814 }
@@ -1842,7 +1842,7 @@ cmpwrapper_call(cmpwrapperobject *co, PyObject *args, PyObject *kwds)
18421842 return NULL ;
18431843 if (!PyObject_TypeCheck (x , & sortwrapper_type ) ||
18441844 !PyObject_TypeCheck (y , & sortwrapper_type )) {
1845- PyErr_SetString (PyExc_TypeError ,
1845+ PyErr_SetString (PyExc_TypeError ,
18461846 "expected a sortwrapperobject" );
18471847 return NULL ;
18481848 }
@@ -1883,7 +1883,7 @@ static PyObject *
18831883build_cmpwrapper (PyObject * cmpfunc )
18841884{
18851885 cmpwrapperobject * co ;
1886-
1886+
18871887 co = PyObject_New (cmpwrapperobject , & cmpwrapper_type );
18881888 if (co == NULL )
18891889 return NULL ;
@@ -1948,7 +1948,7 @@ listsort(PyListObject *self, PyObject *args, PyObject *kwds)
19481948 if (keyfunc != NULL ) {
19491949 for (i = 0 ; i < saved_ob_size ; i ++ ) {
19501950 value = saved_ob_item [i ];
1951- key = PyObject_CallFunctionObjArgs (keyfunc , value ,
1951+ key = PyObject_CallFunctionObjArgs (keyfunc , value ,
19521952 NULL );
19531953 if (key == NULL ) {
19541954 for (i = i - 1 ; i >=0 ; i -- ) {
@@ -1957,7 +1957,7 @@ listsort(PyListObject *self, PyObject *args, PyObject *kwds)
19571957 saved_ob_item [i ] = value ;
19581958 Py_DECREF (kvpair );
19591959 }
1960- if (self -> ob_item != empty_ob_item
1960+ if (self -> ob_item != empty_ob_item
19611961 || self -> ob_size ) {
19621962 /* If the list changed *as well* we
19631963 have two errors. We let the first
@@ -1968,7 +1968,7 @@ listsort(PyListObject *self, PyObject *args, PyObject *kwds)
19681968 self , 0 , self -> ob_size ,
19691969 (PyObject * )NULL );
19701970 }
1971-
1971+
19721972 goto dsu_fail ;
19731973 }
19741974 kvpair = build_sortwrapper (key , value );
@@ -2502,7 +2502,7 @@ list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value)
25022502 lim = self -> ob_size - cur - 1 ;
25032503 }
25042504
2505- memmove (self -> ob_item + cur - i ,
2505+ memmove (self -> ob_item + cur - i ,
25062506 self -> ob_item + cur + 1 ,
25072507 lim * sizeof (PyObject * ));
25082508 }
@@ -2534,7 +2534,7 @@ list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value)
25342534 PyList_GET_SIZE (value ));
25352535 }
25362536 else {
2537- seq = PySequence_Fast (value ,
2537+ seq = PySequence_Fast (value ,
25382538 "must assign iterable to extended slice" );
25392539 if (!seq )
25402540 return -1 ;
0 commit comments