diff options
Diffstat (limited to 'stdnum/fi/hetu.py')
-rw-r--r-- | stdnum/fi/hetu.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/stdnum/fi/hetu.py b/stdnum/fi/hetu.py index 69b543e..580fe6c 100644 --- a/stdnum/fi/hetu.py +++ b/stdnum/fi/hetu.py @@ -72,9 +72,8 @@ def _calc_checksum(number): def validate(number): - """Checks to see if the number provided is a valid HETU. It checks the - format, whether a valid date is given and whether the check digit is - correct.""" + """Check if the number is a valid HETU. It checks the format, whether a + valid date is given and whether the check digit is correct.""" number = compact(number) match = _hetu_re.search(number) if not match: @@ -99,9 +98,7 @@ def validate(number): def is_valid(number): - """Checks to see if the number provided is a valid HETU. It checks the - format, whether a valid date is given and whether the check digit is - correct.""" + """Check if the number is a valid HETU.""" try: return bool(validate(number)) except ValidationError: |