python-stdnum branch master updated. 0.7-7-gbcb0a0b
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-stdnum branch master updated. 0.7-7-gbcb0a0b
- From: Commits of the python-stdnum project <python-stdnum-commits [at] lists.arthurdejong.org>
- To: python-stdnum-commits [at] lists.arthurdejong.org
- Reply-to: python-stdnum-users [at] lists.arthurdejong.org
- Subject: python-stdnum branch master updated. 0.7-7-gbcb0a0b
- Date: Fri, 7 Jun 2013 18:22:10 +0200 (CEST)
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 bcb0a0b529d70525c36096b8eaa7a44d9986a914 (commit)
from 2d956eb37601c712286792518aadaccded3de950 (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 -----------------------------------------------------------------
http://arthurdejong.org/git/python-stdnum/commit/?id=bcb0a0b529d70525c36096b8eaa7a44d9986a914
commit bcb0a0b529d70525c36096b8eaa7a44d9986a914
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Fri Jun 7 18:21:54 2013 +0200
GRid's format() function shouldn't have add_check_digit parameter
diff --git a/stdnum/grid.py b/stdnum/grid.py
index af2e272..1d6a630 100644
--- a/stdnum/grid.py
+++ b/stdnum/grid.py
@@ -1,6 +1,6 @@
# grid.py - functions for handling Global Release Identifier (GRid) numbers
#
-# Copyright (C) 2010, 2011, 2012 Arthur de Jong
+# Copyright (C) 2010, 2011, 2012, 2013 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
@@ -59,7 +59,7 @@ def is_valid(number):
return len(number) == 18 and mod_37_36.is_valid(number)
-def format(number, separator='-', add_check_digit=False):
+def format(number, separator='-'):
"""Reformat the passed number to the standard format."""
number = compact(number)
number = (number[0:2], number[2:7], number[7:17], number[17:])
-----------------------------------------------------------------------
Summary of changes:
stdnum/grid.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
http://lists.arthurdejong.org/python-stdnum-commits/
- python-stdnum branch master updated. 0.7-7-gbcb0a0b,
Commits of the python-stdnum project