mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Added flush() method.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user