@@ -897,11 +897,11 @@ call_tzinfo_method(PyObject *tzinfo, char *name, PyObject *tzinfoarg)
897897 }
898898 }
899899 else {
900- Py_DECREF (offset );
901900 PyErr_Format (PyExc_TypeError ,
902901 "tzinfo.%s() must return None or "
903902 "timedelta, not '%.200s'" ,
904903 name , Py_TYPE (offset )-> tp_name );
904+ Py_DECREF (offset );
905905 return NULL ;
906906 }
907907
@@ -2153,7 +2153,7 @@ delta_new(PyTypeObject *type, PyObject *args, PyObject *kw)
21532153 * is odd. Note that x is odd when it's last bit is 1. The
21542154 * code below uses bitwise and operation to check the last
21552155 * bit. */
2156- temp = PyNumber_And (x , one ); /* temp <- x & 1 */
2156+ temp = PyNumber_And (x , one ); /* temp <- x & 1 */
21572157 if (temp == NULL ) {
21582158 Py_DECREF (x );
21592159 goto Done ;
@@ -3224,10 +3224,10 @@ timezone_richcompare(PyDateTime_TimeZone *self,
32243224 if (op != Py_EQ && op != Py_NE )
32253225 Py_RETURN_NOTIMPLEMENTED ;
32263226 if (Py_TYPE (other ) != & PyDateTime_TimeZoneType ) {
3227- if (op == Py_EQ )
3228- Py_RETURN_FALSE ;
3229- else
3230- Py_RETURN_TRUE ;
3227+ if (op == Py_EQ )
3228+ Py_RETURN_FALSE ;
3229+ else
3230+ Py_RETURN_TRUE ;
32313231 }
32323232 return delta_richcompare (self -> offset , other -> offset , op );
32333233}
@@ -4778,7 +4778,7 @@ datetime_astimezone(PyDateTime_DateTime *self, PyObject *args, PyObject *kw)
47784778 static char * keywords [] = {"tz" , NULL };
47794779
47804780 if (! PyArg_ParseTupleAndKeywords (args , kw , "|O:astimezone" , keywords ,
4781- & tzinfo ))
4781+ & tzinfo ))
47824782 return NULL ;
47834783
47844784 if (check_tzinfo_subclass (tzinfo ) == -1 )
0 commit comments