diff options
Diffstat (limited to 'stdnum/pl/regon.py')
-rw-r--r-- | stdnum/pl/regon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdnum/pl/regon.py b/stdnum/pl/regon.py index cf3697e..17b5c68 100644 --- a/stdnum/pl/regon.py +++ b/stdnum/pl/regon.py @@ -52,7 +52,7 @@ InvalidChecksum: ... """ from stdnum.exceptions import * -from stdnum.util import clean +from stdnum.util import clean, isdigits def compact(number): @@ -76,7 +76,7 @@ def validate(number): """Check if the number is a valid REGON 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) not in (9, 14): raise InvalidLength() |