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 -----------------------------------------------------------------

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

    Fix bug in damm.is_valid() function

diff --git a/stdnum/ b/stdnum/
index dc93151..cf8a2cd 100644
--- a/stdnum/
+++ b/stdnum/
@@ -1,6 +1,6 @@
 # - 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."""
-        return bool(validate(number), table=table)
+        return bool(validate(number, table=table))
     except ValidationError:
         return False


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

To unsubscribe send an email to or see