Minor code and comment cleanups

This commit is contained in:
Eric Torres 2019-10-24 09:36:58 -07:00
parent 821b25ceca
commit 9eeca9910c
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ def parse_configfile(filepath):
:rtype: ConfigParser object :rtype: ConfigParser object
:raises FileNotFoundError: if path does not exist :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") raise FileNotFoundError(f"{filepath} does not exist")
config_reader = configparser.ConfigParser(strict=False, allow_no_value=True) config_reader = configparser.ConfigParser(strict=False, allow_no_value=True)

View File

@ -40,7 +40,7 @@ def get(query=None, *, directory=None, signatures_only=False):
def filter(iterable, *, 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 :param iterable: any iterable
:type iterable: anything that returns str or path-like objects :type iterable: anything that returns str or path-like objects