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
commit 309866f8c9
3 changed files with 11 additions and 3 deletions

View File

@ -1,8 +1,16 @@
language: python language: python
sudo: false sudo: false
cache: pip cache: pip
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
before_install: before_install:
- pip install tox - pip install tox
# command to run tests # command to run tests
script: script:
- tox - tox

View File

@ -83,7 +83,7 @@ class Escpos(object):
pbuffer = b'' pbuffer = b''
self._raw(S_RASTER_N) 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)) self._raw(binascii.unhexlify(pbuffer))
pbuffer = "" pbuffer = ""

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py27, py34 envlist = py27, py34, py35
[testenv] [testenv]
deps = nose deps = nose