diff options
Diffstat (limited to 'stdnum/se/vat.py')
-rw-r--r-- | stdnum/se/vat.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/stdnum/se/vat.py b/stdnum/se/vat.py index 3868828..efaabc4 100644 --- a/stdnum/se/vat.py +++ b/stdnum/se/vat.py @@ -47,8 +47,8 @@ def compact(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 not number.isdigit() or number[-2:] != '01': raise InvalidFormat() @@ -57,8 +57,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: |