mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-24 14:23:19 +00:00
add support for pypy3
This commit is contained in:
parent
ef3f94101a
commit
d5e9ac9316
2 changed files with 5 additions and 2 deletions
|
|
@ -23,6 +23,9 @@ if hasattr(sys, 'pypy_version_info'):
|
||||||
# cStringIO is slow on PyPy, StringIO is faster. However: PyPy's own
|
# cStringIO is slow on PyPy, StringIO is faster. However: PyPy's own
|
||||||
# StringBuilder is fastest.
|
# StringBuilder is fastest.
|
||||||
from __pypy__ import newlist_hint
|
from __pypy__ import newlist_hint
|
||||||
|
try:
|
||||||
|
from __pypy__.builders import BytesBuilder as StringBuilder
|
||||||
|
except ImportError:
|
||||||
from __pypy__.builders import StringBuilder
|
from __pypy__.builders import StringBuilder
|
||||||
USING_STRINGBUILDER = True
|
USING_STRINGBUILDER = True
|
||||||
class StringIO(object):
|
class StringIO(object):
|
||||||
|
|
|
||||||
2
tox.ini
2
tox.ini
|
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py26,py27,py32,py33,py34,pypy
|
envlist = py26,py27,py32,py33,py34,pypy,pypy3
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps=
|
deps=
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue