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/bg/pnf.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'stdnum/bg/pnf.py') diff --git a/stdnum/bg/pnf.py b/stdnum/bg/pnf.py index 0f2eb64..726159f 100644 --- a/stdnum/bg/pnf.py +++ b/stdnum/bg/pnf.py @@ -53,9 +53,8 @@ def calc_check_digit(number): def validate(number): - """Checks to see if the number provided is a valid national - identification number. This checks the length, formatting, embedded - date and check digit.""" + """Check if the number is a valid national identification number. This + checks the length, formatting, embedded date and check digit.""" number = compact(number) if not number.isdigit(): raise InvalidFormat() @@ -67,9 +66,7 @@ def validate(number): def is_valid(number): - """Checks to see if the number provided is a valid national - identification number. This checks the length, formatting, embedded - date and check digit.""" + """Check if the number is a valid national identification number.""" try: return bool(validate(number)) except ValidationError: -- cgit v1.2.3