Update docstring and make if statement more explicit
This commit is contained in:
parent
2325a04990
commit
c2a362023e
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user