| OLD | NEW |
| 1 """Class returned by TLSConnection.makefile().""" | 1 """Class returned by TLSConnection.makefile().""" |
| 2 | 2 |
| 3 class FileObject: | 3 class FileObject: |
| 4 """This class provides a file object interface to a | 4 """This class provides a file object interface to a |
| 5 L{tlslite.TLSConnection.TLSConnection}. | 5 L{tlslite.TLSConnection.TLSConnection}. |
| 6 | 6 |
| 7 Call makefile() on a TLSConnection to create a FileObject instance. | 7 Call makefile() on a TLSConnection to create a FileObject instance. |
| 8 | 8 |
| 9 This class was copied, with minor modifications, from the | 9 This class was copied, with minor modifications, from the |
| 10 _fileobject class in socket.py. Note that fileno() is not | 10 _fileobject class in socket.py. Note that fileno() is not |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 # Iterator protocols | 211 # Iterator protocols |
| 212 | 212 |
| 213 def __iter__(self): | 213 def __iter__(self): |
| 214 return self | 214 return self |
| 215 | 215 |
| 216 def next(self): | 216 def next(self): |
| 217 line = self.readline() | 217 line = self.readline() |
| 218 if not line: | 218 if not line: |
| 219 raise StopIteration | 219 raise StopIteration |
| 220 return line | 220 return line |
| OLD | NEW |