Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/sm
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/sm
parent2cc39ea459dcd712462113e12ceb5eda27de9ecb (diff)
Docstring improvements
Diffstat (limited to 'stdnum/sm')
-rw-r--r--stdnum/sm/coe.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/stdnum/sm/coe.py b/stdnum/sm/coe.py
index cb3e487..f40ffaa 100644
--- a/stdnum/sm/coe.py
+++ b/stdnum/sm/coe.py
@@ -58,8 +58,8 @@ def compact(number):
def validate(number):
- """Checks to see if the number provided is a valid number. This checks
- the length and formatting."""
+ """Check if the number is a valid COE. This checks the length and
+ formatting."""
number = compact(number)
if len(number) > 5 or len(number) == 0:
raise InvalidLength()
@@ -71,8 +71,7 @@ def validate(number):
def is_valid(number):
- """Checks to see if the number provided is a valid number. This
- checks the length, formatting and check digit."""
+ """Check if the number is a valid COE."""
try:
return bool(validate(number))
except ValidationError: