lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.6-1-g6b588d1

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.6-1-g6b588d1



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  6b588d1c39ff75f853b97af37aa0724745aff65f (commit)
      from  35542c1e718572970f9120886482b2824b7db266 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=6b588d1c39ff75f853b97af37aa0724745aff65f

commit 6b588d1c39ff75f853b97af37aa0724745aff65f
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Thu Apr 13 20:53:04 2017 +0200

    Fix bug in damm.is_valid() function

diff --git a/stdnum/damm.py b/stdnum/damm.py
index dc93151..cf8a2cd 100644
--- a/stdnum/damm.py
+++ b/stdnum/damm.py
@@ -1,6 +1,6 @@
 # damm.py - functions for performing the Damm checksum algorithm
 #
-# Copyright (C) 2016 Arthur de Jong
+# Copyright (C) 2016-2017 Arthur de Jong
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -82,7 +82,7 @@ def validate(number, table=None):
 def is_valid(number, table=None):
     """Checks to see if the number provided passes the Damm algorithm."""
     try:
-        return bool(validate(number), table=table)
+        return bool(validate(number, table=table))
     except ValidationError:
         return False
 

-----------------------------------------------------------------------

Summary of changes:
 stdnum/damm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
python-stdnum
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/python-stdnum-commits/