Skip to content

Commit 4749890

Browse files
Move ZONEINFO_STRONG_CACHE_MAX_SIZE to constants and make it const
1 parent 39a0b7c commit 4749890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_zoneinfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ typedef struct {
100100
} zoneinfo_state;
101101

102102
// Globals
103-
static size_t ZONEINFO_STRONG_CACHE_MAX_SIZE = 8;
104-
105103
static zoneinfo_state global_state;
106104

107105
static _ttinfo NO_TTINFO = {NULL, NULL, NULL, 0};
@@ -120,6 +118,8 @@ static const int SOURCE_NOCACHE = 0;
120118
static const int SOURCE_CACHE = 1;
121119
static const int SOURCE_FILE = 2;
122120

121+
static const size_t ZONEINFO_STRONG_CACHE_MAX_SIZE = 8;
122+
123123
// Forward declarations
124124
static int
125125
load_data(zoneinfo_state *state, PyZoneInfo_ZoneInfo *self,

0 commit comments

Comments
 (0)