Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/fi/ytunnus.py
diff options
context:
space:
mode:
Diffstat (limited to 'stdnum/fi/ytunnus.py')
-rw-r--r--stdnum/fi/ytunnus.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/stdnum/fi/ytunnus.py b/stdnum/fi/ytunnus.py
index 10114eb..2f38241 100644
--- a/stdnum/fi/ytunnus.py
+++ b/stdnum/fi/ytunnus.py
@@ -44,14 +44,13 @@ def compact(number):
def validate(number):
- """Checks to see if the number provided is a valid business identifier.
- This checks the length, formatting and check digit."""
+ """Check if the number is a valid business identifier. This checks the
+ length, formatting and check digit."""
return alv.validate(number)
def is_valid(number):
- """Checks to see if the number provided is a valid business identifier.
- This checks the length, formatting and check digit."""
+ """Check if the number is a valid business identifier."""
try:
return bool(validate(number))
except ValidationError:
@@ -59,6 +58,6 @@ def is_valid(number):
def format(number):
- """Reformat the passed number to the standard format."""
+ """Reformat the number to the standard presentation format."""
number = compact(number)
return number[:7] + '-' + number[7:]