We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cfaad4 commit eebc2c5Copy full SHA for eebc2c5
1 file changed
barcode/codex.py
@@ -284,7 +284,8 @@ class MSI(Barcode):
284
:param encoding: string
285
if set, convert bytes to string and use this as a label. defaults to utf-8
286
if unset, use integer value as label
287
- Note: label can also be set when calling save() with param 'text'
+ Note: for convenience ; label can also be set when calling save() with param
288
+ 'text'
289
290
limitations:
291
- only one check digit (Luhn Mod10)
@@ -309,7 +310,7 @@ def __init__(
309
310
elif type(code) is bytes:
311
self.code = str(int.from_bytes(code, byteorder))
312
if encoding is not None:
- self.label = code.decode(encoding) if label is None else label
313
+ self.label = code.decode(encoding)
314
else:
315
self.label = self.code if label is None else label
316
0 commit comments