Show More
@@ -220,6 +220,10 b' class posixfile(object):' | |||||
220 | self.name = name |
|
220 | self.name = name | |
221 | self.mode = mode |
|
221 | self.mode = mode | |
222 |
|
222 | |||
|
223 | def __iter__(self): | |||
|
224 | for line in self.read().splitlines(True): | |||
|
225 | yield line | |||
|
226 | ||||
223 | def read(self, count=-1): |
|
227 | def read(self, count=-1): | |
224 | try: |
|
228 | try: | |
225 | cs = cStringIO.StringIO() |
|
229 | cs = cStringIO.StringIO() |
General Comments 0
You need to be logged in to leave comments.
Login now