From 1c276393d695f969f4600cb3adc49af71168d513 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 10 Sep 2017 23:24:08 +0200 Subject: Docstring improvements --- stdnum/ro/cf.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'stdnum/ro/cf.py') diff --git a/stdnum/ro/cf.py b/stdnum/ro/cf.py index c953c25..7b07fb9 100644 --- a/stdnum/ro/cf.py +++ b/stdnum/ro/cf.py @@ -56,8 +56,8 @@ def calc_check_digit(number): def validate(number): - """Checks to see if the number provided is a valid VAT number. This - checks the length, formatting and check digit.""" + """Check if the number is a valid VAT number. This checks the length, + formatting and check digit.""" number = compact(number) if not number.isdigit() or number[0] == '0': raise InvalidFormat() @@ -73,8 +73,7 @@ def validate(number): def is_valid(number): - """Checks to see if the number provided is a valid VAT number. This - checks the length, formatting and check digit.""" + """Check if the number is a valid VAT number.""" try: return bool(validate(number)) except ValidationError: -- cgit v1.2.3