From 48bfd84b02a09e014e01090b37fe188dc0ac895b Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 7 Aug 2021 16:54:06 +0200 Subject: Fix typos found by codespell Closes https://github.com/arthurdejong/python-stdnum/pull/269 --- stdnum/isbn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stdnum/isbn.py') diff --git a/stdnum/isbn.py b/stdnum/isbn.py index b868be6..9e4d521 100644 --- a/stdnum/isbn.py +++ b/stdnum/isbn.py @@ -69,7 +69,7 @@ from stdnum.util import clean, isdigits def compact(number, convert=False): """Convert the ISBN to the minimal representation. This strips the number of any valid ISBN separators and removes surrounding whitespace. If the - covert parameter is True the number is also converted to ISBN-13 + convert parameter is True the number is also converted to ISBN-13 format.""" number = clean(number, ' -').strip().upper() if len(number) == 9: @@ -175,7 +175,7 @@ def to_isbn10(number): def split(number, convert=False): """Split the specified ISBN into an EAN.UCC prefix, a group prefix, a registrant, an item number and a check-digit. If the number is in ISBN-10 - format the returned EAN.UCC prefix is '978'. If the covert parameter is + format the returned EAN.UCC prefix is '978'. If the convert parameter is True the number is converted to ISBN-13 format first.""" # clean up number number = compact(number, convert) @@ -200,6 +200,6 @@ def format(number, separator='-', convert=False): EAN.UCC prefix (if any), the group prefix, the registrant, the item number and the check-digit separated (if possible) by the specified separator. Passing an empty separator should equal compact() though this - is less efficient. If the covert parameter is True the number is + is less efficient. If the convert parameter is True the number is converted to ISBN-13 format first.""" return separator.join(x for x in split(number, convert) if x) -- cgit v1.2.3