Project

General

Profile

« Previous | Next » 

Revision 1762

streams.py: FilterStream: Forward all reads to readline()

View differences:

lib/streams.py
60 60
    
61 61
    def readline(self): return self.filter(self.stream.readline())
62 62
    
63
    def read(self, n): return self.readline() # forward all reads to readline()
64
    
63 65
    def write(self, str_): return self.stream.write(self.filter(str_))
64 66

  
65 67
class TracedStream(FilterStream):

Also available in: Unified diff