Fix comment

This commit is contained in:
Thomas Forgione 2024-07-23 14:43:04 +02:00
parent 667f937c00
commit b8d1f2feb0
1 changed files with 1 additions and 1 deletions

2
tar.py
View File

@ -61,7 +61,7 @@ def header_chunk(filename: str, filepath: str) -> bytes:
# POSIX 1003.1-1990: 255 empty bytes # POSIX 1003.1-1990: 255 empty bytes
# Compute the checksum: we start at 248 which are the 8 fields of checksum filled with spaces (32 * 8) # Compute the checksum: we start at 256 which are the 8 fields of checksum filled with spaces (32 * 8)
checksum = oct(functools.reduce(lambda x, y: x + y, buffer, 256)).rjust(6, '0').encode('ascii') checksum = oct(functools.reduce(lambda x, y: x + y, buffer, 256)).rjust(6, '0').encode('ascii')
buffer[148:154] = checksum buffer[148:154] = checksum