From 9eeca9910cafed86c287857c7037f0da97000f4a Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Thu, 24 Oct 2019 09:36:58 -0700 Subject: [PATCH] Minor code and comment cleanups --- packaging_scripts/pacmanconf.py | 2 +- packaging_scripts/pkgfiles.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging_scripts/pacmanconf.py b/packaging_scripts/pacmanconf.py index 5b51a68..7e9972c 100644 --- a/packaging_scripts/pacmanconf.py +++ b/packaging_scripts/pacmanconf.py @@ -19,7 +19,7 @@ def parse_configfile(filepath): :rtype: ConfigParser object :raises FileNotFoundError: if path does not exist """ - if not pathlib.Path(filepath).is_file(): + if not Path(filepath).is_file(): raise FileNotFoundError(f"{filepath} does not exist") config_reader = configparser.ConfigParser(strict=False, allow_no_value=True) diff --git a/packaging_scripts/pkgfiles.py b/packaging_scripts/pkgfiles.py index f563e0f..2f5fa68 100644 --- a/packaging_scripts/pkgfiles.py +++ b/packaging_scripts/pkgfiles.py @@ -40,7 +40,7 @@ def get(query=None, *, directory=None, signatures_only=False): def filter(iterable, *, signatures_only=False): - """Retrive package file types from a predefined iterable. + """Retrieve package files from a predefined iterable. :param iterable: any iterable :type iterable: anything that returns str or path-like objects