Skip to content
Snippets Groups Projects
Commit caf2c6ef authored by Christian Boos's avatar Christian Boos
Browse files

The posixfile implemented using the win32 API should be iterable.

parent 78ab05ef
No related branches found
No related tags found
No related merge requests found
......@@ -220,6 +220,10 @@
self.name = name
self.mode = mode
def __iter__(self):
for line in self.read().splitlines(True):
yield line
def read(self, count=-1):
try:
cs = cStringIO.StringIO()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment