Skip to content

Commit 35dd3cf

Browse files
committed
bpo-40686: Apply code review
1 parent eb76952 commit 35dd3cf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Modules/_zoneinfo.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static void
172172
update_strong_cache(const PyTypeObject *const type, PyObject *key,
173173
PyObject *zone);
174174
static PyObject *
175-
zone_from_strong_cache(const PyTypeObject *const type, PyObject *key);
175+
zone_from_strong_cache(const PyTypeObject *const type, PyObject *const key);
176176

177177
static PyObject *
178178
zoneinfo_new_instance(PyTypeObject *type, PyObject *key)
@@ -1220,19 +1220,19 @@ calendarrule_new(uint8_t month, uint8_t week, uint8_t day, int8_t hour,
12201220
// optimize out the first comparison if day is an unsigned integer anyway,
12211221
// we will leave this comparison in place and disable the compiler warning.
12221222
#ifdef __clang__
1223-
#pragma clang diagnostic push
1224-
#pragma clang diagnostic ignored "-Wtautological-compare"
1223+
# pragma clang diagnostic push
1224+
# pragma clang diagnostic ignored "-Wtautological-compare"
12251225
#endif
12261226
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))
1227-
#pragma GCC diagnostic push
1228-
#pragma GCC diagnostic ignored "-Wtype-limits"
1227+
# pragma GCC diagnostic push
1228+
# pragma GCC diagnostic ignored "-Wtype-limits"
12291229
#endif
12301230
if (day < 0 || day > 6) {
12311231
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))
1232-
#pragma GCC diagnostic pop
1232+
# pragma GCC diagnostic pop
12331233
#endif
12341234
#ifdef __clang__
1235-
#pragma clang diagnostic pop
1235+
# pragma clang diagnostic pop
12361236
#endif
12371237
PyErr_Format(PyExc_ValueError, "Day must be in [0, 6]");
12381238
return -1;

0 commit comments

Comments
 (0)