From 5b7724356d8c5c3a3be9120814d4d996574485a9 Mon Sep 17 00:00:00 2001 From: Gregory Wiedeman Date: Fri, 22 Mar 2024 12:27:44 -0400 Subject: [PATCH] is_valid() method can now pass an optional processes parameter to validate() (#140) --- bagit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bagit.py b/bagit.py index 0200b46..458fba8 100755 --- a/bagit.py +++ b/bagit.py @@ -612,13 +612,13 @@ def validate(self, processes=1, fast=False, completeness_only=False): return True - def is_valid(self, fast=False, completeness_only=False): + def is_valid(self, processes=1, fast=False, completeness_only=False): """Returns validation success or failure as boolean. - Optional fast parameter passed directly to validate(). + Optional processes and fast parameters passed directly to validate(). """ try: - self.validate(fast=fast, completeness_only=completeness_only) + self.validate(processes=processes, fast=fast, completeness_only=completeness_only) except BagError: return False