print_and_feed: py3 fix
This commit is contained in:
parent
40c200f28d
commit
8968e9463c
@ -640,7 +640,7 @@ class Escpos(object):
|
||||
"""
|
||||
if 0 <= n <= 255:
|
||||
# ESC d n
|
||||
self._raw(ESC + b"d" + six.binary_type(chr(n)))
|
||||
self._raw(ESC + b"d" + six.int2byte(n))
|
||||
else:
|
||||
raise ValueError("n must be betwen 0 and 255")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user