From 4dea342680371b1135afa3ecad981b507723f3b3 Mon Sep 17 00:00:00 2001 From: Qian Linfeng Date: Thu, 28 Apr 2016 09:28:16 +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 045a4fd..9f330a9 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -269,7 +269,7 @@ class Escpos: elif type.upper() == "BU2": self._raw(TXT_BOLD_ON) self._raw(TXT_UNDERL2_ON) - elif type.upper == "NORMAL": + elif type.upper() == "NORMAL": self._raw(TXT_BOLD_OFF) self._raw(TXT_UNDERL_OFF) # Font