1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-09-13 09:09:58 +00:00

Merge pull request #111 from mike42/feature/python3.5-support

Clean up non-float value, add v3.5 to tox test
This commit is contained in:
Patrick Kanzler
2016-03-19 12:51:03 +01:00
3 changed files with 11 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ class Escpos(object):
pbuffer = b''
self._raw(S_RASTER_N)
pbuffer = "%02X%02X%02X%02X" % (((size[0]/size[1])/8), 0, size[1] & 0xff, size[1] >> 8)
pbuffer = "%02X%02X%02X%02X" % (((size[0]//size[1])//8), 0, size[1] & 0xff, size[1] >> 8)
self._raw(binascii.unhexlify(pbuffer))
pbuffer = ""