Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/pl/regon.py
diff options
context:
space:
mode:
Diffstat (limited to 'stdnum/pl/regon.py')
-rw-r--r--stdnum/pl/regon.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/stdnum/pl/regon.py b/stdnum/pl/regon.py
index 82af03a..cf3697e 100644
--- a/stdnum/pl/regon.py
+++ b/stdnum/pl/regon.py
@@ -73,8 +73,8 @@ def calc_check_digit(number):
def validate(number):
- """Checks to see if the number provided is a valid REGON number. This
- checks the length, formatting and check digit."""
+ """Check if the number is a valid REGON number. This checks the length,
+ formatting and check digit."""
number = compact(number)
if not number.isdigit():
raise InvalidFormat()
@@ -88,8 +88,7 @@ def validate(number):
def is_valid(number):
- """Checks to see if the number provided is a valid REGON number. This
- checks the length, formatting and check digit."""
+ """Check if the number is a valid REGON number."""
try:
return bool(validate(number))
except ValidationError: