From 3e89a10bed9d736eb4fd333b4d0f9921d22154ac Mon Sep 17 00:00:00 2001 From: Stephan Sokolow Date: Thu, 22 May 2014 00:48:24 -0400 Subject: [PATCH] Accept "CODABAR" as an alias for "NW7" in barcode() --- escpos/escpos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/escpos/escpos.py b/escpos/escpos.py index 1751e29..b258bf1 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -342,7 +342,7 @@ class Escpos(object): self._raw(BARCODE_CODE39) elif bc.upper() == "ITF": self._raw(BARCODE_ITF) - elif bc.upper() == "NW7": + elif bc.upper() in ("NW7", "CODABAR"): self._raw(BARCODE_NW7) else: raise BarcodeTypeError(bc)