From 5b1e6348e59648f8cfffad8aa4e70098af572a17 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 26ec590..424c31d 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -192,7 +192,7 @@ class Escpos: 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)