Skip to content

Commit

Permalink
trivial: Make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Oct 19, 2024
1 parent 1ffbff7 commit 8f5ef76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/laniakea/archive/pkgimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def verify_hashes(file: T.Union[ChangesFileEntry, ArchiveFile], local_fname: T.U
"""Verifies all known hashes of :file"""
hashes_checked = 0
with open(local_fname, 'rb') as f:
hash_okay = False
# pylint: disable=not-an-iterable
for hash in Hashes(f).hashes: # type: ignore
if hash.hashtype == 'MD5Sum':
Expand Down
2 changes: 1 addition & 1 deletion src/lkarchive/data_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def export_package_list(suite_name: str, result_fname: T.PathUnion, repo_name: T
.all()
)

with open(os.path.abspath(result_fname), 'w', encoding='utf-8') as f:
with open(os.path.abspath(str(result_fname)), 'w', encoding='utf-8') as f:
for info in spkg_info:
f.write('{} {} source\n'.format(info[0], info[1]))
for info in bpkg_info:
Expand Down

0 comments on commit 8f5ef76

Please sign in to comment.