[pypy-svn] r50744 - pypy/dist/pypy/tool
fijal at codespeak.net
fijal at codespeak.net
Fri Jan 18 11:43:29 CET 2008
Author: fijal
Date: Fri Jan 18 11:43:29 2008
New Revision: 50744
Modified:
pypy/dist/pypy/tool/slaveproc.py
Log:
Try hard to obey the cpython deletion order and not to complain at the end
of tests.
Modified: pypy/dist/pypy/tool/slaveproc.py
==============================================================================
--- pypy/dist/pypy/tool/slaveproc.py (original)
+++ pypy/dist/pypy/tool/slaveproc.py Fri Jan 18 11:43:29 2008
@@ -6,12 +6,16 @@
self.inp = inp
def send(self, data):
+ if marshal is None:
+ return
s = marshal.dumps(data)
h = struct.pack('L', len(s))
self.out.write(h+s)
self.out.flush()
def recv(self):
+ if not struct:
+ return 'done'
HSIZE = struct.calcsize('L')
h = self.inp.read(HSIZE)
if len(h) < HSIZE:
More information about the Pypy-commit
mailing list