direct_image throws TypeError

* The _raw method accepts only byte strings
This commit is contained in:
Christoph Heuel 2016-03-07 19:57:12 +01:00 committed by Patrick Kanzler
parent 21992d7017
commit 75252a3797
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ class Escpos(object):
i = 0 i = 0
temp = 0 temp = 0
self._raw(binascii.unhexlify(bytes(buf, "ascii"))) self._raw(binascii.unhexlify(bytes(buf, "ascii")))
self._raw('\n') self._raw(b'\n')
def qr(self, text): def qr(self, text):
""" Print QR Code for the provided string """ Print QR Code for the provided string