From 0ce5d0b21bd36cef209d7574e2ef5215df3ceca6 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 10 Sep 2017 23:40:53 +0200 Subject: Minor code improvements (mostly PEP8) --- stdnum/ro/cnp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdnum/ro/cnp.py') diff --git a/stdnum/ro/cnp.py b/stdnum/ro/cnp.py index 6aab9ef..be815a2 100644 --- a/stdnum/ro/cnp.py +++ b/stdnum/ro/cnp.py @@ -84,7 +84,7 @@ def validate(number): if len(number) != 13: raise InvalidLength() # check if birth date is valid - birth_date = get_birth_date(number) + get_birth_date(number) # TODO: check that the birth date is not in the future # number[7:9] is the county, we ignore it for now, just check last digit if calc_check_digit(number[:-1]) != number[-1]: -- cgit v1.2.3