RSS feed

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

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

commit c113613b70629a6ba92dcc0afc9dbf834f5179ee
Author: Chris Lamb <>
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
    Signed-off-by: Chris Lamb <>

diff --git a/stdnum/eu/ b/stdnum/eu/
index d91a137..98fd850 100644
--- a/stdnum/eu/
+++ b/stdnum/eu/
@@ -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:
     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/ | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

To unsubscribe send an email to or see