lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.13-30-g127fff1

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

python-stdnum branch master updated. 1.13-30-g127fff1



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  127fff17bf612ba8457ea84424ce4d99abd62306 (commit)
      from  0d5b8b154945cc3cdcea5ddfd0676332b4cf5ad4 (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=127fff17bf612ba8457ea84424ce4d99abd62306

commit 127fff17bf612ba8457ea84424ce4d99abd62306
Author: Christopher Ormaza <chris.ormaza@gmail.com>
Date:   Sat Jun 6 09:36:37 2020 -0500

    Support 6 as third digit for foreign people in Ecuador
    
    Closes https://github.com/arthurdejong/python-stdnum/pull/228

diff --git a/stdnum/ec/ci.py b/stdnum/ec/ci.py
index 6e58851..c97c193 100644
--- a/stdnum/ec/ci.py
+++ b/stdnum/ec/ci.py
@@ -62,7 +62,7 @@ def validate(number):
         raise InvalidFormat()
     if (number[:2] < '01' or number[:2] > '24') and (number[:2] not in ('30', 
'50')):
         raise InvalidComponent()  # invalid province code
-    if number[2] > '5':
+    if number[2] > '6':
         raise InvalidComponent()  # third digit wrong
     if _checksum(number) != 0:
         raise InvalidChecksum()

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

Summary of changes:
 stdnum/ec/ci.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
python-stdnum