From 0a8057414c1d34fa449dce4f3c35c1b2933791b3 Mon Sep 17 00:00:00 2001 From: Qian Linfeng Date: Thu, 28 Apr 2016 14:32:00 +0800 Subject: [PATCH] Fix upper method forgot brackets bug --- escpos/escpos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/escpos/escpos.py b/escpos/escpos.py index de83151..3e97216 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -457,7 +457,7 @@ class Escpos(object): elif text_type.upper() == "BU2": self._raw(TXT_BOLD_ON) self._raw(TXT_UNDERL2_ON) - elif text_type.upper == "NORMAL": + elif text_type.upper() == "NORMAL": self._raw(TXT_BOLD_OFF) self._raw(TXT_UNDERL_OFF) # Font