Skip to content

Commit 57010fb

Browse files
author
Lukas Puehringer
committed
Rename hash algo global in repo simulator
Remove the "default" prefix, because it's not a default but rather a fixed value. Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
1 parent 866409f commit 57010fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/repository_simulator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
SPEC_VER = ".".join(SPECIFICATION_VERSION)
8282

83-
_DEFAULT_HASH_ALGORITHM = "sha256"
83+
_HASH_ALGORITHM = "sha256"
8484

8585

8686
@dataclass
@@ -294,9 +294,9 @@ def _compute_hashes_and_length(
294294
self, role: str
295295
) -> tuple[dict[str, str], int]:
296296
data = self.fetch_metadata(role)
297-
digest_object = hashlib.new(_DEFAULT_HASH_ALGORITHM)
297+
digest_object = hashlib.new(_HASH_ALGORITHM)
298298
digest_object.update(data)
299-
hashes = {_DEFAULT_HASH_ALGORITHM: digest_object.hexdigest()}
299+
hashes = {_HASH_ALGORITHM: digest_object.hexdigest()}
300300
return hashes, len(data)
301301

302302
def update_timestamp(self) -> None:

0 commit comments

Comments
 (0)