File tree 3 files changed +1
-9
lines changed 3 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,6 @@ def __len__(self) -> int:
148
148
return len (self .source_datapipe )
149
149
150
150
151
- # Register for functional API for backward compatibility
152
- IterDataPipe .register_datapipe_as_function ("open_file_by_fsspec" , FSSpecFileOpenerIterDataPipe )
153
-
154
-
155
151
@functional_datapipe ("save_by_fsspec" )
156
152
class FSSpecSaverIterDataPipe (IterDataPipe [str ]):
157
153
r"""
Original file line number Diff line number Diff line change @@ -142,10 +142,6 @@ def __len__(self) -> int:
142
142
return len (self .source_datapipe )
143
143
144
144
145
- # Register for functional API for backward compatibility
146
- IterDataPipe .register_datapipe_as_function ("open_file_by_iopath" , IoPathFileOpenerIterDataPipe )
147
-
148
-
149
145
@functional_datapipe ("save_by_iopath" )
150
146
class IoPathSaverIterDataPipe (IterDataPipe [str ]):
151
147
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def __getitem__(self, index):
90
90
self ._load_map ()
91
91
return self ._map [index ] # type: ignore[index]
92
92
except KeyError :
93
- raise IndexError (f"Index { index } is valid for IterToMapConverter." )
93
+ raise IndexError (f"Index { index } is invalid for IterToMapConverter." )
94
94
95
95
def __len__ (self ):
96
96
if self ._map is not None :
You can’t perform that action at this time.
0 commit comments