@@ -1856,7 +1856,7 @@ make_freplacement(PyObject *object)
18561856 return PyUnicode_FromString (freplacement );
18571857}
18581858
1859- #if defined(MS_WINDOWS ) || defined(__ANDROID__ )
1859+ // #if defined(MS_WINDOWS) || defined(__ANDROID__)
18601860static PyObject *
18611861make_dash_replacement (PyObject * object , Py_UCS4 ch , PyObject * timetuple )
18621862{
@@ -1902,7 +1902,7 @@ make_dash_replacement(PyObject *object, Py_UCS4 ch, PyObject *timetuple)
19021902 Py_XDECREF (stripped );
19031903 return NULL ;
19041904}
1905- #endif
1905+ // #endif
19061906
19071907/* I sure don't want to reproduce the strftime code from the time module,
19081908 * so this imports the module and calls it. All the hair is due to
@@ -1960,7 +1960,6 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
19601960 i ++ ;
19611961 /* A % has been seen and ch is the character after it. */
19621962 PyObject * replacement = NULL ;
1963- int need_decref_replacement = 0 ;
19641963
19651964 if (ch == 'z' ) {
19661965 /* %z -> +HHMM */
@@ -2053,7 +2052,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
20532052 }
20542053 continue ;
20552054 }
2056- #if defined(MS_WINDOWS ) || defined(__ANDROID__ )
2055+ // #if defined(MS_WINDOWS) || defined(__ANDROID__)
20572056 /* non-0-pad Windows and Android support */
20582057 else if (ch == '-' && i < flen ) {
20592058 Py_UCS4 next_ch = PyUnicode_READ_CHAR (format , i );
@@ -2066,7 +2065,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
20662065 }
20672066 replacement = dash_replacement ;
20682067 }
2069- #endif
2068+ // #endif
20702069 else {
20712070 /* percent followed by something else */
20722071 continue ;
0 commit comments