Skip to content

Commit 86be86e

Browse files
Simplify
1 parent d888f16 commit 86be86e

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Modules/_zoneinfo.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,12 +1181,9 @@ load_data(zoneinfo_state *state, PyZoneInfo_ZoneInfo *self, PyObject *file_obj)
11811181
self->ttinfo_before = &(self->_ttinfos[0]);
11821182
}
11831183

1184-
int has_tz_str = 0;
1185-
if (tz_str != Py_None) {
1186-
has_tz_str = PyObject_IsTrue(tz_str);
1187-
if (has_tz_str < 0) {
1188-
goto error;
1189-
}
1184+
int has_tz_str = PyObject_IsTrue(tz_str);
1185+
if (has_tz_str < 0) {
1186+
goto error;
11901187
}
11911188

11921189
if (has_tz_str) {

0 commit comments

Comments
 (0)