Update docstring and make if statement more explicit

This commit is contained in:
Eric Torres 2019-01-28 08:08:23 -08:00
parent 2325a04990
commit c2a362023e

View File

@ -10,10 +10,12 @@ def get_pkgfiles(directory=None, signatures=False):
:param directory: a directory to search in :param directory: a directory to search in
:type directory: str, bytes, or path-like object :type directory: str, bytes, or path-like object
:param signatures: include only signature files
:type signatures: bool
:returns: paths of package files :returns: paths of package files
:rtype: list :rtype: list
""" """
if directory: if directory is not None:
path = pathlib.Path(directory) path = pathlib.Path(directory)
else: else:
path = pathlib.Path.cwd() path = pathlib.Path.cwd()