Skip to content

Commit a094fbc

Browse files
committed
touch up comments again
1 parent 3076fea commit a094fbc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pydra/utils/hash.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,13 @@ 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 and check to see whether it returns
245+
# Read the first item of the bytes_repr iterator and check to see whether it yields
246246
# a "cache-key" tuple instead of a bytes chunk for the type of the object to be cached
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).
247+
# (e.g. file-system path + mtime for fileformats.core.FileSet objects). If it
248+
# does, use that key to check the persistent cache for a precomputed hash and
249+
# return it if it is, otherwise calculate the hash and store it in the persistent
250+
# cache with that hash of that key (not to be confused with the hash of the
251+
# object that is saved/retrieved).
251252
first = next(bytes_it)
252253
if isinstance(first, tuple):
253254
tp = type(obj)

0 commit comments

Comments
 (0)