Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/mc/tva.py
diff options
context:
space:
mode:
Diffstat (limited to 'stdnum/mc/tva.py')
-rw-r--r--stdnum/mc/tva.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/stdnum/mc/tva.py b/stdnum/mc/tva.py
index 9acb222..0fe3bf5 100644
--- a/stdnum/mc/tva.py
+++ b/stdnum/mc/tva.py
@@ -45,8 +45,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 = tva.validate(number)
if number[2:5] != '000':
raise InvalidComponent()
@@ -54,8 +54,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: