python-stdnum branch master updated. 2.1-12-g7a9b852
[
Date Prev][Date Next]
[
Thread Prev][Thread Next]
python-stdnum branch master updated. 2.1-12-g7a9b852
- 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, python-stdnum-commits [at] lists.arthurdejong.org
- Subject: python-stdnum branch master updated. 2.1-12-g7a9b852
- Date: Sun, 26 Oct 2025 13:24:08 +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 7a9b8527a501edaa506c06d0d7a5c7c2a3acbb00 (commit)
from 7ca9b6ce7b1f2b4d1bf164c2af83a8a77bc919d2 (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=7a9b8527a501edaa506c06d0d7a5c7c2a3acbb00
commit 7a9b8527a501edaa506c06d0d7a5c7c2a3acbb00
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Sun Oct 26 13:21:42 2025 +0100
Mark more Romanian CNP county codes as valid
According to
https://ro.wikipedia.org/wiki/Carte_de_identitate_rom%C3%A2neasc%C4%83#Seriile_c%C4%83r%C8%9Bilor_de_identitate_(%C3%AEn_modelele_emise_%C3%AEnainte_de_2021)
70 is used to represent any registration, regardless of county but while
multiple documents claim 80-83 are also valid it is unclear what they
represent.
Closes https://github.com/arthurdejong/python-stdnum/issues/489
diff --git a/stdnum/ro/cnp.py b/stdnum/ro/cnp.py
index b0ef0ea..55a4745 100644
--- a/stdnum/ro/cnp.py
+++ b/stdnum/ro/cnp.py
@@ -1,7 +1,7 @@
# cnp.py - functions for handling Romanian CNP numbers
# coding: utf-8
#
-# Copyright (C) 2012-2020 Arthur de Jong
+# Copyright (C) 2012-2025 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
@@ -110,6 +110,11 @@ _COUNTIES = {
'48': 'Bucuresti - Sector 8 (desfiintat)',
'51': 'Calarasi',
'52': 'Giurgiu',
+ '70': 'Any',
+ '80': 'Unknown',
+ '81': 'Unknown',
+ '82': 'Unknown',
+ '83': 'Unknown',
}
-----------------------------------------------------------------------
Summary of changes:
stdnum/ro/cnp.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
hooks/post-receive
--
python-stdnum
- python-stdnum branch master updated. 2.1-12-g7a9b852,
Commits of the python-stdnum project