diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2019-02-15 23:15:57 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2019-02-15 23:17:23 +0100 |
commit | 200a604bf514529d1332631f559912bdd9ec1fa0 (patch) | |
tree | 0fa51820d13c10f2ab005f7c97bec7c20a092b07 | |
parent | 0a64179efcc8eae1ff77386be14ec081aa1b68de (diff) | |
download | dlp_check_version_PyPI-200a604bf514529d1332631f559912bdd9ec1fa0.tar.gz |
Updates PEP484 types.
-rwxr-xr-x | dlpcvp.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |