diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2017-09-10 23:24:08 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2017-09-11 20:54:31 +0200 |
commit | 1c276393d695f969f4600cb3adc49af71168d513 (patch) | |
tree | bfe9e373d9212ef43f06de953f8d12bb3d413ef4 /stdnum/cy/vat.py | |
parent | 2cc39ea459dcd712462113e12ceb5eda27de9ecb (diff) |
Docstring improvements
Diffstat (limited to 'stdnum/cy/vat.py')
-rw-r--r-- | stdnum/cy/vat.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/stdnum/cy/vat.py b/stdnum/cy/vat.py index 7ab320e..df3674d 100644 --- a/stdnum/cy/vat.py +++ b/stdnum/cy/vat.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[:-1].isdigit(): raise InvalidFormat() @@ -75,8 +75,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: |