Skip to content

Commit 6b868b1

Browse files
committed
Merge pull request #5411 from jreback/dateutil_fix
BLD: dateutil-2.2 patch
2 parents 7df68f6 + 6168892 commit 6b868b1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/requirements-3.3.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
python-dateutil==2.1
1+
python-dateutil==2.2
22
pytz==2013b
33
openpyxl==1.6.2
44
xlsxwriter==0.4.3

pandas/tseries/tools.py

+4
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ def dateutil_parse(timestr, default,
305305

306306
res = DEFAULTPARSER._parse(fobj, **kwargs)
307307

308+
# dateutil 2.2 compat
309+
if isinstance(res, tuple):
310+
res, _ = res
311+
308312
if res is None:
309313
raise ValueError("unknown string format")
310314

0 commit comments

Comments
 (0)