Skip to content

Commit 41c368c

Browse files
committed
Switch import logic between windows and the other OS
As explained here dateutil/dateutil#11 """ ... consumers (e.g. pandas) is supposed to be using dateutil.tz.gettz() instead of dateutil.zoneinfo.gettz()... """ Signed-off-by: Justin Lecher <[email protected]>
1 parent ce225aa commit 41c368c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tslib.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ from dateutil.tz import (tzoffset, tzlocal as _dateutil_tzlocal, tzfile as _date
4343
tzutc as _dateutil_tzutc)
4444
from pandas.compat import is_platform_windows
4545
if is_platform_windows():
46-
from dateutil.tz import gettz as _dateutil_gettz
47-
else:
4846
from dateutil.zoneinfo import gettz as _dateutil_gettz
47+
else:
48+
from dateutil.tz import gettz as _dateutil_gettz
4949

5050
from pytz.tzinfo import BaseTzInfo as _pytz_BaseTzInfo
5151
from pandas.compat import parse_date, string_types, PY3, iteritems

0 commit comments

Comments
 (0)