From 200a604bf514529d1332631f559912bdd9ec1fa0 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 15 Feb 2019 23:15:57 +0100 Subject: Updates PEP484 types. --- dlpcvp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlpcvp.py b/dlpcvp.py index 1a54b92..f8ccec0 100755 --- a/dlpcvp.py +++ b/dlpcvp.py @@ -79,7 +79,7 @@ def suse_packages(proj: str) -> Iterable[str]: raise -def parse_spec_in_dev_null(spec_file, pkg): +def parse_spec_in_dev_null(spec_file: str, pkg: str) -> Optional[Tuple[str, str]]: # rpm library generates awful lot of nonsensical goo on # stderr with open(os.devnull, 'wb') as nullf: @@ -181,7 +181,7 @@ def package_version(proj: str, pkg_name: str, con: sqlite3.Connection) \ spec_files.append(name) except HTTPError as ex: if ex.getcode() == 404: - log.error(f'Cannot accquire version of {pkg_name} in {proj}') + log.error(f'Cannot acquire version of {pkg_name} in {proj}') return None else: raise -- cgit