diff options
Diffstat (limited to 'stdnum/au/abn.py')
-rw-r--r-- | stdnum/au/abn.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/stdnum/au/abn.py b/stdnum/au/abn.py index ba69557..301eb13 100644 --- a/stdnum/au/abn.py +++ b/stdnum/au/abn.py @@ -58,8 +58,8 @@ def calc_check_digits(number): def validate(number): - """Checks to see if the number provided is a valid ABN. This checks the - length, formatting and check digit.""" + """Check if the number is a valid ABN. This checks the length, formatting + and check digit.""" number = compact(number) if not number.isdigit(): raise InvalidFormat() @@ -71,8 +71,7 @@ def validate(number): def is_valid(number): - """Checks to see if the number provided is a valid ABN. This checks the - length, formatting and check digit.""" + """Check if the number is a valid ABN.""" try: return bool(validate(number)) except ValidationError: @@ -80,6 +79,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[0:2], number[2:5], number[5:8], number[8:])) |