diff options
Diffstat (limited to 'stdnum/lt/pvm.py')
-rw-r--r-- | stdnum/lt/pvm.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/stdnum/lt/pvm.py b/stdnum/lt/pvm.py index b5b2016..aadbb4a 100644 --- a/stdnum/lt/pvm.py +++ b/stdnum/lt/pvm.py @@ -60,8 +60,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 not number.isdigit(): raise InvalidFormat() @@ -81,8 +81,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: |