Skip to content

Commit b5092d8

Browse files
authored
CLN: Use C-API for datetime.date (#33222)
* CLN: Use C-API for datetime.date * Cimporting cpython.datetime as datetime XREF: #33222 (comment) Co-authored-by: MomIsBestFriend <>
1 parent 3209b69 commit b5092d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/tslibs/strptime.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import time
44
import locale
55
import calendar
66
import re
7-
import datetime
87

98
from _thread import allocate_lock as _thread_allocate_lock
109

@@ -13,6 +12,7 @@ import pytz
1312
import numpy as np
1413
from numpy cimport int64_t
1514

15+
cimport cpython.datetime as datetime
1616

1717
from pandas._libs.tslibs.np_datetime cimport (
1818
check_dts_bounds, dtstruct_to_dt64, npy_datetimestruct)

0 commit comments

Comments
 (0)