mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue