python-stdnum branch master updated. 1.8.1-1-gc113613
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-stdnum branch master updated. 1.8.1-1-gc113613
- 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. 1.8.1-1-gc113613
- Date: Sun, 7 Jan 2018 12:23:06 +0100 (CET)
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 c113613b70629a6ba92dcc0afc9dbf834f5179ee (commit)
from 9841baec64391567d70f2fe6c0f8a58cc27a4eee (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=c113613b70629a6ba92dcc0afc9dbf834f5179ee
commit c113613b70629a6ba92dcc0afc9dbf834f5179ee
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sun Jan 7 08:49:38 2018 +0000
Exclude EU country codes from documentation
Whilst working on the Reproducible Builds effort [0], we noticed that
python-stdnum could not be built reproducibly as it relies on a stable
set ordering when generating the documentation.
This has been filed in Debian as #88652
[0] https://reproducible-builds.org/
[1] https://bugs.debian.org/886522
Closes: https://github.com/arthurdejong/python-stdnum/pull/61
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
diff --git a/stdnum/eu/vat.py b/stdnum/eu/vat.py
index d91a137..98fd850 100644
--- a/stdnum/eu/vat.py
+++ b/stdnum/eu/vat.py
@@ -43,7 +43,7 @@ from stdnum.exceptions import *
from stdnum.util import clean, get_cc_module, get_soap_client
-country_codes = set([
+_country_codes = set([
'at', 'be', 'bg', 'cy', 'cz', 'de', 'dk', 'ee', 'es', 'fi', 'fr', 'gb',
'gr', 'hr', 'hu', 'ie', 'it', 'lt', 'lu', 'lv', 'mt', 'nl', 'pl', 'pt',
'ro', 'se', 'si', 'sk',
@@ -63,7 +63,7 @@ def _get_cc_module(cc):
cc = cc.lower()
if cc == 'el':
cc = 'gr'
- if cc not in country_codes:
+ if cc not in _country_codes:
return
if cc not in _country_modules:
_country_modules[cc] = get_cc_module(cc, 'vat')
@@ -105,7 +105,7 @@ def guess_country(number):
for which it is valid. This returns lower case codes and returns gr (not
el) for Greece."""
return [cc
- for cc in country_codes
+ for cc in _country_codes
if _get_cc_module(cc).is_valid(number)]
-----------------------------------------------------------------------
Summary of changes:
stdnum/eu/vat.py | 6 +++---
1 file changed, 3 insertions(+), 3 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/
- python-stdnum branch master updated. 1.8.1-1-gc113613,
Commits of the python-stdnum project