Skip to content

CLN: Cython Py2/3 Compatible Imports #23940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Dec 26, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
LINT fixup
  • Loading branch information
WillAyd committed Dec 1, 2018
commit 1d6d19607e88ec7d27cb1ceccbe9cb54522fdb76
16 changes: 6 additions & 10 deletions pandas/_libs/tslib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,19 @@ from pandas._libs.util cimport (
is_integer_object, is_float_object, is_string_object, is_datetime64_object)


from pandas._libs.tslibs.np_datetime cimport (check_dts_bounds,
npy_datetimestruct,
_string_to_dts,
dt64_to_dtstruct, dtstruct_to_dt64,
pydatetime_to_dt64, pydate_to_dt64,
get_datetime64_value)
from pandas._libs.tslibs.np_datetime cimport (
check_dts_bounds, npy_datetimestruct, _string_to_dts, dt64_to_dtstruct,
dtstruct_to_dt64, pydatetime_to_dt64, pydate_to_dt64, get_datetime64_value)
from pandas._libs.tslibs.np_datetime import OutOfBoundsDatetime

from pandas._libs.tslibs.parsing import parse_datetime_string

from pandas._libs.tslibs.timedeltas cimport cast_from_unit
from pandas._libs.tslibs.timezones cimport is_utc, is_tzlocal, get_dst_info
from pandas._libs.tslibs.timezones import UTC
from pandas._libs.tslibs.conversion cimport (tz_convert_single, _TSObject,
convert_datetime_to_tsobject,
get_datetime64_nanos,
tz_convert_utc_to_tzlocal)
from pandas._libs.tslibs.conversion cimport (
tz_convert_single, _TSObject, convert_datetime_to_tsobject,
get_datetime64_nanos, tz_convert_utc_to_tzlocal)

# many modules still look for NaT and iNaT here despite them not being needed
from pandas._libs.tslibs.nattype import nat_strings, NaT, iNaT # noqa:F821
Expand Down
6 changes: 3 additions & 3 deletions pandas/_libs/window.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ cdef extern from "src/headers/cmath" namespace "std":
cimport pandas._libs.util as util
from pandas._libs.util cimport numeric

from pandas._libs.skiplist cimport (skiplist_t,
skiplist_init, skiplist_destroy,
skiplist_get, skiplist_insert, skiplist_remove)
from pandas._libs.skiplist cimport (
skiplist_t, skiplist_init, skiplist_destroy, skiplist_get, skiplist_insert,
skiplist_remove)

cdef float32_t MINfloat32 = np.NINF
cdef float64_t MINfloat64 = np.NINF
Expand Down