##// END OF EJS Templates
The posixfile implemented using the win32 API should be iterable.
Christian Boos -
r2243:caf2c6ef default
parent child Browse files
Show More
@@ -220,6 +220,10 b' class posixfile(object):'
220 220 self.name = name
221 221 self.mode = mode
222 222
223 def __iter__(self):
224 for line in self.read().splitlines(True):
225 yield line
226
223 227 def read(self, count=-1):
224 228 try:
225 229 cs = cStringIO.StringIO()
General Comments 0
You need to be logged in to leave comments. Login now