[py-svn] r9174 - py/dist/py/execnet
hpk at codespeak.net
hpk at codespeak.net
Sat Feb 12 23:26:47 CET 2005
Author: hpk
Date: Sat Feb 12 23:26:47 2005
New Revision: 9174
Modified:
py/dist/py/execnet/channel.py
Log:
get rid of 'yield' usage in sources that
are sent over to different versions of python.
Modified: py/dist/py/execnet/channel.py
==============================================================================
--- py/dist/py/execnet/channel.py (original)
+++ py/dist/py/execnet/channel.py Sat Feb 12 23:26:47 2005
@@ -93,11 +93,13 @@
return x
def __iter__(self):
- while 1:
- try:
- yield self.receive()
- except EOFError:
- raise StopIteration
+ return self
+
+ def next(self):
+ try:
+ return self.receive()
+ except EOFError:
+ raise StopIteration
#
# helpers
More information about the pytest-commit
mailing list