Skip to content

Commit 9dacf1c

Browse files
committed
Dill 3.7 support
1 parent 4472a87 commit 9dacf1c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
# Minimum 8.0.0 to be able to use .to_reader()
114114
"pyarrow>=8.0.0",
115115
# For smart caching dataset processing
116-
"dill>=0.3.0,<0.3.7", # tmp pin until next 0.3.7 release: see https://github.com/huggingface/datasets/pull/5166
116+
"dill>=0.3.0",
117117
# For performance gains with apache arrow
118118
"pandas",
119119
# for downloading datasets over HTTPS

src/datasets/utils/py_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def save(self, obj, save_persistent_id=True):
606606
def dill_log(pickler, msg):
607607
dill._dill.log.info(msg)
608608

609-
elif config.DILL_VERSION.release[:3] == version.parse("0.3.6").release:
609+
else:
610610

611611
def dill_log(pickler, msg):
612612
dill._dill.logger.trace(pickler, msg)
@@ -826,7 +826,7 @@ def _save_code(pickler, obj):
826826
dill._dill.log.info("# Co")
827827
return
828828

829-
elif config.DILL_VERSION.release[:3] == version.parse("0.3.6").release:
829+
else: # config.DILL_VERSION >= version.parse("0.3.6")
830830
# From: https://github.com/uqfoundation/dill/blob/dill-0.3.6/dill/_dill.py#L1104
831831
@pklregister(CodeType)
832832
def save_code(pickler, obj):
@@ -1193,7 +1193,7 @@ def save_function(pickler, obj):
11931193
dill._dill.log.info("# F2")
11941194
return
11951195

1196-
elif config.DILL_VERSION.release[:3] == version.parse("0.3.6").release:
1196+
else: # config.DILL_VERSION >= version.parse("0.3.6")
11971197
# From: https://github.com/uqfoundation/dill/blob/dill-0.3.6/dill/_dill.py#L1739
11981198
@pklregister(FunctionType)
11991199
def save_function(pickler, obj):

0 commit comments

Comments
 (0)