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:
commit
309866f8c9
10
.travis.yml
10
.travis.yml
|
@ -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
|
||||||
|
|
|
@ -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 = ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue