mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
Added flush() method.
This commit is contained in:
parent
ff99a72f53
commit
aa3e163fa1
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ class StringIO:
|
|||
self.pos = newpos
|
||||
def writelines(self, list):
|
||||
self.write(string.joinfields(list, ''))
|
||||
def flush(self):
|
||||
pass
|
||||
def getvalue(self):
|
||||
return self.buf
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue