Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/eu/eic.py
diff options
context:
space:
mode:
Diffstat (limited to 'stdnum/eu/eic.py')
-rw-r--r--stdnum/eu/eic.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdnum/eu/eic.py b/stdnum/eu/eic.py
index 88d28e0..e6d9419 100644
--- a/stdnum/eu/eic.py
+++ b/stdnum/eu/eic.py
@@ -65,8 +65,8 @@ def calc_check_digit(number):
def validate(number):
- """Checks to see if the number provided is valid. This checks the length,
- format and check digit."""
+ """Check if the number is valid. This checks the length, format and check
+ digit."""
number = compact(number)
if not all(x in _alphabet for x in number):
raise InvalidFormat()
@@ -80,8 +80,8 @@ def validate(number):
def is_valid(number):
- """Checks to see if the number provided is valid. This checks the length,
- format and check digit."""
+ """Check if the number is valid. This checks the length, format and check
+ digit."""
try:
return bool(validate(number))
except ValidationError: