Skip to content

Commit 11dff45

Browse files
committed
iter
1 parent 49442f5 commit 11dff45

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

imblearn/keras/_generator.py

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ def import_from_keras():
1717
try:
1818
import keras # noqa
1919

20-
if hasattr(keras.utils, "Sequence"):
21-
# Older versions of Keras provide the Sequence class directly in utils
22-
return (keras.utils.Sequence,), True
2320
return (keras.utils.data_utils.Sequence,), True
2421
except ImportError:
2522
return tuple(), False

0 commit comments

Comments
 (0)