diff options
Diffstat (limited to 'stdnum/at')
-rw-r--r-- | stdnum/at/businessid.py | 7 | ||||
-rw-r--r-- | stdnum/at/uid.py | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/stdnum/at/businessid.py b/stdnum/at/businessid.py index 8ce5ab7..20c2a0f 100644 --- a/stdnum/at/businessid.py +++ b/stdnum/at/businessid.py @@ -53,8 +53,8 @@ def compact(number): def validate(number): - """Checks to see if the number provided is a valid company register - number. This only checks the formatting.""" + """Check if the number is a valid company register number. This only + checks the formatting.""" number = compact(number) if not number[-1:].isalpha() or not number[:-1].isdigit(): raise InvalidFormat() @@ -62,8 +62,7 @@ def validate(number): def is_valid(number): - """Checks to see if the number provided is a valid company register - number. This only checks the formatting.""" + """Check if the number is a valid company register number.""" try: return bool(validate(number)) except ValidationError: diff --git a/stdnum/at/uid.py b/stdnum/at/uid.py index a070d5a..e11aa76 100644 --- a/stdnum/at/uid.py +++ b/stdnum/at/uid.py @@ -53,8 +53,8 @@ def calc_check_digit(number): def validate(number): - """Checks to see if the number provided is a valid VAT number. This checks - the length, formatting and check digit.""" + """Check if the number is a valid VAT number. This checks the length, + formatting and check digit.""" number = compact(number) if number[:1] != 'U' or not number[1:].isdigit(): raise InvalidFormat() @@ -66,8 +66,7 @@ def validate(number): def is_valid(number): - """Checks to see if the number provided is a valid VAT number. This checks - the length, formatting and check digit.""" + """Check if the number is a valid VAT number.""" try: return bool(validate(number)) except ValidationError: |