@@ -93,7 +93,7 @@ def read_as_bytesio(function: Callable, suffix: str, bytesio: BytesIO):
93
93
}
94
94
95
95
96
- def find_suitiable_decoder (url : str ) -> Callable :
96
+ def find_suitable_decoder (url : str ) -> Callable :
97
97
"""
98
98
By supplying a url or a filename, obtain a suitable decoder function
99
99
for siibra to digest based on predefined DECODERS. An extra layer of
@@ -110,7 +110,7 @@ def find_suitiable_decoder(url: str) -> Callable:
110
110
"""
111
111
urlpath = urllib .parse .urlsplit (url ).path
112
112
if urlpath .endswith (".gz" ):
113
- dec = find_suitiable_decoder (urlpath [:- 3 ])
113
+ dec = find_suitable_decoder (urlpath [:- 3 ])
114
114
if dec is None :
115
115
return lambda b : gzip .decompress (b )
116
116
else :
@@ -185,7 +185,7 @@ def _set_decoder_func(self, func: Callable = None):
185
185
----------
186
186
func : Callable, default: None
187
187
"""
188
- self .func = func or find_suitiable_decoder (self .url )
188
+ self .func = func or find_suitable_decoder (self .url )
189
189
190
190
@property
191
191
def cached (self ):
@@ -279,7 +279,7 @@ class FileLoader(HttpRequest):
279
279
def __init__ (self , filepath , func = None ):
280
280
HttpRequest .__init__ (
281
281
self , filepath , refresh = False ,
282
- func = func or find_suitiable_decoder (filepath )
282
+ func = func or find_suitable_decoder (filepath )
283
283
)
284
284
self .cachefile = filepath
285
285
@@ -293,7 +293,7 @@ class ZipfileRequest(HttpRequest):
293
293
def __init__ (self , url , filename , func = None , refresh = False ):
294
294
HttpRequest .__init__ (
295
295
self , url , refresh = refresh ,
296
- func = func or find_suitiable_decoder (filename )
296
+ func = func or find_suitable_decoder (filename )
297
297
)
298
298
self .filename = filename
299
299
0 commit comments