[Checkins] SVN: zope.tal/trunk/ Add PyPy support because it's not hard
Marius Gedminas
cvs-admin at zope.org
Thu Feb 7 23:05:12 UTC 2013
Log message for revision 129200:
Add PyPy support because it's not hard
Changed:
U zope.tal/trunk/CHANGES.txt
U zope.tal/trunk/setup.py
U zope.tal/trunk/src/zope/tal/tests/test_xmlparser.py
U zope.tal/trunk/tox.ini
-=-
Modified: zope.tal/trunk/CHANGES.txt
===================================================================
--- zope.tal/trunk/CHANGES.txt 2013-02-07 23:05:09 UTC (rev 129199)
+++ zope.tal/trunk/CHANGES.txt 2013-02-07 23:05:12 UTC (rev 129200)
@@ -10,8 +10,8 @@
- Dropped support for Python 2.4 and 2.5.
-- Experimental Python 3.3 support (all tests pass, but test coverage
- is not complete).
+- Experimental Python 3.3 and PyPy support (all tests pass, but test
+ coverage is not complete).
3.6.1 (2012-03-09)
Modified: zope.tal/trunk/setup.py
===================================================================
--- zope.tal/trunk/setup.py 2013-02-07 23:05:09 UTC (rev 129199)
+++ zope.tal/trunk/setup.py 2013-02-07 23:05:12 UTC (rev 129200)
@@ -63,6 +63,8 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
+ 'Programming Language :: Python :: Implementation :: CPython',
+ 'Programming Language :: Python :: Implementation :: PyPy',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
Modified: zope.tal/trunk/src/zope/tal/tests/test_xmlparser.py
===================================================================
--- zope.tal/trunk/src/zope/tal/tests/test_xmlparser.py 2013-02-07 23:05:09 UTC (rev 129199)
+++ zope.tal/trunk/src/zope/tal/tests/test_xmlparser.py 2013-02-07 23:05:12 UTC (rev 129200)
@@ -86,8 +86,12 @@
def __init__(self, parts):
self.parts = list(parts)
- def read(self, bytes):
- if self.parts:
+ def read(self, nbytes=None):
+ if nbytes is None:
+ # PyPy's expat wants to read everything in one go
+ s = b''.join(self.parts)
+ del self.parts[:]
+ elif self.parts:
s = self.parts.pop(0)
else:
s = b''
Modified: zope.tal/trunk/tox.ini
===================================================================
--- zope.tal/trunk/tox.ini 2013-02-07 23:05:09 UTC (rev 129199)
+++ zope.tal/trunk/tox.ini 2013-02-07 23:05:12 UTC (rev 129200)
@@ -1,6 +1,6 @@
[tox]
envlist =
- py26,py27,py33
+ py26,py27,py33,pypy
[testenv]
commands =
More information about the checkins
mailing list