fix failures
This commit is contained in:
18
main.py
18
main.py
@@ -25,7 +25,11 @@ def _inspect_patch(path: str) -> None:
|
||||
controls = 0
|
||||
|
||||
with PatchReader.open(path) as reader:
|
||||
compression = reader.header.compression.algorithm if reader.header and reader.header.compression else None
|
||||
compression = (
|
||||
reader.header.compression.algorithm
|
||||
if reader.header and reader.header.compression
|
||||
else None
|
||||
)
|
||||
for entry in reader.iter_file_entries():
|
||||
files += 1
|
||||
if entry.is_rsync():
|
||||
@@ -50,7 +54,11 @@ def _inspect_patch(path: str) -> None:
|
||||
def _inspect_signature(path: str) -> None:
|
||||
blocks = 0
|
||||
with SignatureReader.open(path) as reader:
|
||||
compression = reader.header.compression.algorithm if reader.header and reader.header.compression else None
|
||||
compression = (
|
||||
reader.header.compression.algorithm
|
||||
if reader.header and reader.header.compression
|
||||
else None
|
||||
)
|
||||
for _ in reader.iter_block_hashes():
|
||||
blocks += 1
|
||||
print("signature")
|
||||
@@ -61,7 +69,11 @@ def _inspect_signature(path: str) -> None:
|
||||
def _inspect_manifest(path: str) -> None:
|
||||
hashes = 0
|
||||
with ManifestReader.open(path) as reader:
|
||||
compression = reader.header.compression.algorithm if reader.header and reader.header.compression else None
|
||||
compression = (
|
||||
reader.header.compression.algorithm
|
||||
if reader.header and reader.header.compression
|
||||
else None
|
||||
)
|
||||
for _ in reader.iter_block_hashes():
|
||||
hashes += 1
|
||||
print("manifest")
|
||||
|
||||
Reference in New Issue
Block a user