diff options
Diffstat (limited to 'stdnum/ee')
-rw-r--r-- | stdnum/ee/ik.py | 4 | ||||
-rw-r--r-- | stdnum/ee/kmkr.py | 4 | ||||
-rw-r--r-- | stdnum/ee/registrikood.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/stdnum/ee/ik.py b/stdnum/ee/ik.py index eded9e5..6eadb84 100644 --- a/stdnum/ee/ik.py +++ b/stdnum/ee/ik.py @@ -42,7 +42,7 @@ datetime.date(1968, 5, 28) import datetime from stdnum.exceptions import * -from stdnum.util import clean +from stdnum.util import clean, isdigits def compact(number): @@ -98,7 +98,7 @@ def validate(number): """Check if the number provided is valid. This checks the length, formatting, embedded date and check digit.""" number = compact(number) - if not number.isdigit(): + if not isdigits(number): raise InvalidFormat() if len(number) != 11: raise InvalidLength() diff --git a/stdnum/ee/kmkr.py b/stdnum/ee/kmkr.py index a5762e5..24ddbb3 100644 --- a/stdnum/ee/kmkr.py +++ b/stdnum/ee/kmkr.py @@ -31,7 +31,7 @@ InvalidChecksum: ... """ from stdnum.exceptions import * -from stdnum.util import clean +from stdnum.util import clean, isdigits def compact(number): @@ -53,7 +53,7 @@ def validate(number): """Check if the number provided is a valid VAT number. This checks the length, formatting and check digit.""" number = compact(number) - if not number.isdigit(): + if not isdigits(number): raise InvalidFormat() if len(number) != 9: raise InvalidLength() diff --git a/stdnum/ee/registrikood.py b/stdnum/ee/registrikood.py index dad6980..8f0ebc1 100644 --- a/stdnum/ee/registrikood.py +++ b/stdnum/ee/registrikood.py @@ -49,7 +49,7 @@ InvalidComponent: ... from stdnum.ee.ik import calc_check_digit from stdnum.exceptions import * -from stdnum.util import clean +from stdnum.util import clean, isdigits def compact(number): @@ -62,7 +62,7 @@ def validate(number): """Check if the number provided is valid. This checks the length and check digit.""" number = compact(number) - if not number.isdigit(): + if not isdigits(number): raise InvalidFormat() if len(number) != 8: raise InvalidLength() |