File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -242,12 +242,12 @@ def calc_hash(first: ty.Optional[bytes] = None) -> Hash:
242
242
h .update (chunk )
243
243
return Hash (h .digest ())
244
244
245
- # Read the first item of the bytes_repr iterator, check to see whether it returns
245
+ # Read the first item of the bytes_repr iterator and check to see whether it returns
246
246
# a "cache-key" tuple instead of a bytes chunk for the type of the object to be cached
247
- # (i.e. file objects). If it does use that key to check the persistent cache for
248
- # a precomputed hash and return it if it is, otherwise calculate the hash and
249
- # store it in the persistent cache with that hash of that key (not to be confused
250
- # with the hash of the object that is saved/retrieved).
247
+ # (e.g. fileformats.core.FileSet objects). If it does use that key to check the
248
+ # persistent cache for a precomputed hash and return it if it is, otherwise
249
+ # calculate the hash and store it in the persistent cache with that hash of
250
+ # that key (not to be confused with the hash of the object that is saved/retrieved).
251
251
first = next (bytes_it )
252
252
if isinstance (first , tuple ):
253
253
tp = type (obj )
You can’t perform that action at this time.
0 commit comments