Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/lei.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2017-09-10 23:24:08 +0200
committerArthur de Jong <arthur@arthurdejong.org>2017-09-11 20:54:31 +0200
commit1c276393d695f969f4600cb3adc49af71168d513 (patch)
treebfe9e373d9212ef43f06de953f8d12bb3d413ef4 /stdnum/lei.py
parent2cc39ea459dcd712462113e12ceb5eda27de9ecb (diff)
Docstring improvements
Diffstat (limited to 'stdnum/lei.py')
-rw-r--r--stdnum/lei.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/stdnum/lei.py b/stdnum/lei.py
index f87bbee..376fd47 100644
--- a/stdnum/lei.py
+++ b/stdnum/lei.py
@@ -52,16 +52,15 @@ def compact(number):
def validate(number):
- """Checks to see if the number provided is valid. This checks the length,
- format and check digits."""
+ """Check if the number is valid. This checks the length, format and check
+ digits."""
number = compact(number)
mod_97_10.validate(number)
return number
def is_valid(number):
- """Checks to see if the number provided is valid. This checks the length,
- format and check digits."""
+ """Check if the number is valid."""
try:
return bool(validate(number))
except ValidationError: