We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd03867 commit f506815Copy full SHA for f506815
src/aignostics/platform/_utils.py
@@ -182,8 +182,9 @@ def calculate_file_crc32c(file: Path) -> str:
182
"""
183
checksum = google_crc32c.Checksum() # type: ignore[no-untyped-call]
184
with open(file, mode="rb") as f:
185
+ # Iterate through file chunks - checksum is calculated as side effect of consume()
186
for _ in checksum.consume(f, EIGHT_MB): # type: ignore[no-untyped-call]
- pass
187
+ continue # Consume all chunks; checksum accumulates internally
188
return base64.b64encode(checksum.digest()).decode("ascii") # type: ignore[no-untyped-call]
189
190
0 commit comments