Kaydet (Commit) aa3e163f authored tarafından Sjoerd Mullender's avatar Sjoerd Mullender

Added flush() method.

üst ff99a72f
...@@ -81,6 +81,8 @@ class StringIO: ...@@ -81,6 +81,8 @@ class StringIO:
self.pos = newpos self.pos = newpos
def writelines(self, list): def writelines(self, list):
self.write(string.joinfields(list, '')) self.write(string.joinfields(list, ''))
def flush(self):
pass
def getvalue(self): def getvalue(self):
return self.buf return self.buf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment