Skip to content

Commit b832246

Browse files
Fix const static data.
1 parent c5f8871 commit b832246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_datetimemodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4816,7 +4816,7 @@ datetime_time_isoformat_impl(PyDateTime_Time *self, const char *timespec)
48164816

48174817
PyObject *result;
48184818
int us = TIME_GET_MICROSECOND(self);
4819-
static const char *specs[][2] = {
4819+
static const char * const specs[][2] = {
48204820
{"hours", "%02d"},
48214821
{"minutes", "%02d:%02d"},
48224822
{"seconds", "%02d:%02d:%02d"},
@@ -6371,7 +6371,7 @@ datetime_datetime_isoformat_impl(PyDateTime_DateTime *self, int sep,
63716371

63726372
PyObject *result = NULL;
63736373
int us = DATE_GET_MICROSECOND(self);
6374-
static const char *specs[][2] = {
6374+
static const char * const specs[][2] = {
63756375
{"hours", "%04d-%02d-%02d%c%02d"},
63766376
{"minutes", "%04d-%02d-%02d%c%02d:%02d"},
63776377
{"seconds", "%04d-%02d-%02d%c%02d:%02d:%02d"},

0 commit comments

Comments
 (0)