Update of /cvsroot/freevo/kaa/base/src/notifier
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29987
Modified Files:
popen.py
Log Message:
Remove Process.readlines() because dischi doesn't like it :)
Index: popen.py
===================================================================
RCS file: /cvsroot/freevo/kaa/base/src/notifier/popen.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** popen.py 2 Aug 2005 19:37:17 -0000 1.6
--- popen.py 2 Aug 2005 19:41:13 -0000 1.7
***************
*** 120,139 ****
_watcher.append( self, self.__child_died )
- def readlines(self):
- """
- Read lines from process immediately, rather than going through
- notifier.
- """
- if not self.child or not self.is_alive():
- return []
-
- # Remove nonblock flag temporarily.
- fcntl.fcntl( self.child.fromchild.fileno(), fcntl.F_SETFL, os.O_RDWR )
- lines = self.child.fromchild.readlines()
- lines = map(lambda line: line.strip(), lines)
- fcntl.fcntl( self.child.fromchild.fileno(), fcntl.F_SETFL,
os.O_NONBLOCK )
-
- return lines
-
def write( self, line ):
--- 120,123 ----
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog