From 7c00a7580c05cd8b393ee99d4cad27c40151c212 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 28 Jan 2019 10:59:18 -0800 Subject: [PATCH] Redefine signatures parameter for function --- packaging_scripts/pkgfiles.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging_scripts/pkgfiles.py b/packaging_scripts/pkgfiles.py index 6a31104..85d2d3b 100644 --- a/packaging_scripts/pkgfiles.py +++ b/packaging_scripts/pkgfiles.py @@ -7,13 +7,13 @@ PKGEXT = 'pkg.tar.xz' SIGEXT = f"{PKGEXT}.sig" # ========== Functions ========== -def get_pkgfiles(query, directory=None, signatures=False): +def get_pkgfiles(query, directory=None, signatures_only=False): """Return a list of package files in the current working directory. :param directory: a directory to search in :type directory: str, bytes, or path-like object - :param signatures: include only signature files - :type signatures: bool + :param signatures_only: include only signature files + :type signatures_only: bool :returns: paths of package files :rtype: list """ @@ -22,7 +22,7 @@ def get_pkgfiles(query, directory=None, signatures=False): else: path = pathlib.Path.cwd() - if signatures: + if signatures_only: return list(path.glob(f"{query}*.{SIGEXT}")) return list(path.glob(f"{query}*.{PKGEXT}"))