Skip to content

Commit 977fc23

Browse files
committed
MAINT: Drop _timelex compat for dateutil 2.2
1 parent feec79f commit 977fc23

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/_libs/tslibs/parsing.pyx

+1-6
Original file line numberDiff line numberDiff line change
@@ -610,12 +610,7 @@ class _timelex(object):
610610
return cls(s).get_tokens()
611611

612612

613-
def _lexer_split_from_str(dt_str):
614-
# The StringIO(str(_)) is for dateutil 2.2 compatibility
615-
return _timelex.split(StringIO(str(dt_str)))
616-
617-
618-
_DATEUTIL_LEXER_SPLIT = _lexer_split_from_str
613+
_DATEUTIL_LEXER_SPLIT = _timelex.split
619614

620615

621616
def _format_is_iso(f) -> bint:

0 commit comments

Comments
 (0)