MCPcopy Create free account
hub / github.com/WhyNotHugo/python-barcode / __init__

Method __init__

barcode/isxn.py:103–108  ·  view source on GitHub ↗
(self, issn, writer=None)

Source from the content-addressed store, hash-verified

101 digits = 7
102
103 def __init__(self, issn, writer=None) -> None:
104 issn = issn.replace("-", "")
105 issn = issn[: self.digits]
106 self.issn = issn
107 self.issn = f"{issn}{self._calculate_checksum()}"
108 super().__init__(self.make_ean(), writer)
109
110 def _calculate_checksum(self):
111 tmp = (

Callers

nothing calls this directly

Calls 3

_calculate_checksumMethod · 0.95
make_eanMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected