Skip to content

Commit 13538c8

Browse files
authored
Exposed EAN options on ISBN13 constructor (#210)
Expose the no_checksum and guardbar parameters also for the ISBN13 constructor.
1 parent aaa738f commit 13538c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

barcode/isxn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ class InternationalStandardBookNumber13(EuropeanArticleNumber13):
4040

4141
name = "ISBN-13"
4242

43-
def __init__(self, isbn, writer=None) -> None:
43+
def __init__(self, isbn, writer=None, no_checksum=False, guardbar=False) -> None:
4444
isbn = isbn.replace("-", "")
4545
self.isbn13 = isbn
4646
if isbn[:3] not in ("978", "979"):
4747
raise WrongCountryCodeError("ISBN must start with 978 or 979.")
4848
if isbn[:3] == "979" and isbn[3:4] not in ("1", "8"):
4949
raise BarcodeError("ISBN must start with 97910 or 97911.")
50-
super().__init__(isbn, writer)
50+
super().__init__(isbn, writer, no_checksum, guardbar)
5151

5252

5353
class InternationalStandardBookNumber10(InternationalStandardBookNumber13):

0 commit comments

Comments
 (0)