Skip to content

Commit 3076fea

Browse files
committed
another comment touch up
1 parent 191aa9c commit 3076fea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pydra/utils/hash.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ def calc_hash(first: ty.Optional[bytes] = None) -> Hash:
242242
h.update(chunk)
243243
return Hash(h.digest())
244244

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
246246
# 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).
251251
first = next(bytes_it)
252252
if isinstance(first, tuple):
253253
tp = type(obj)

0 commit comments

Comments
 (0)