Skip to content

Commit 72c945b

Browse files
committed
clean up imports
1 parent 24ec458 commit 72c945b

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

pandas/_libs/tslibs/ccalendar.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,4 @@ cpdef get_locale_names(object name_type, object time_locale=None) nogil:
204204

205205
with set_locale(time_locale, locale.LC_TIME):
206206
locale_names = getattr(LocaleTime(), name_type)
207-
return locale_names
207+
return locale_names

pandas/_libs/tslibs/fields.pyx

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ from np_datetime cimport (pandas_datetimestruct, pandas_timedeltastruct,
2121
dt64_to_dtstruct, td64_to_tdstruct)
2222
from nattype cimport NPY_NAT
2323

24-
from pandas._libs.tslibs.strptime import LocaleTime
25-
26-
import locale
27-
from pandas.util.testing import set_locale
2824

2925
def get_time_micros(ndarray[int64_t] dtindex):
3026
"""

pandas/_libs/tslibs/timestamps.pyx

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# cython: profile=False
33
import warnings
4-
import locale
5-
6-
from pandas.util.testing import set_locale
74

85
from cpython cimport (PyObject_RichCompareBool, PyObject_RichCompare,
96
Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE)

0 commit comments

Comments
 (0)