Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/do/rnc.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/do/rnc.py
parent2cc39ea459dcd712462113e12ceb5eda27de9ecb (diff)
Docstring improvements
Diffstat (limited to 'stdnum/do/rnc.py')
-rw-r--r--stdnum/do/rnc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdnum/do/rnc.py b/stdnum/do/rnc.py
index dce10e6..a20ce67 100644
--- a/stdnum/do/rnc.py
+++ b/stdnum/do/rnc.py
@@ -54,7 +54,7 @@ def calc_check_digit(number):
def validate(number):
- """Checks to see if the number provided is a valid RNC."""
+ """Check if the number provided is a valid RNC."""
number = compact(number)
if len(number) != 9:
raise InvalidLength()
@@ -66,7 +66,7 @@ def validate(number):
def is_valid(number):
- """Checks to see if the number provided is a valid RNC."""
+ """Check if the number provided is a valid RNC."""
try:
return bool(validate(number))
except ValidationError:
@@ -74,6 +74,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 '-'.join((number[:1], number[1:3], number[3:-1], number[-1]))