From 8b454c4765a55868f73d224e95c72e54f5894349 Mon Sep 17 00:00:00 2001 From: Michael Billington Date: Thu, 17 Mar 2016 21:59:47 +1100 Subject: [PATCH] Clean up non-float value, add v3.5 to tox test --- escpos/escpos.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/escpos/escpos.py b/escpos/escpos.py index 4498456..738c258 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -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 = "" diff --git a/tox.ini b/tox.ini index 0a56f96..c7460c5 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27, py34 +envlist = py27, py34, py35 [testenv] deps = nose