set softspace to 0 in __init__

This commit is contained in:
Guido van Rossum 1995-06-22 18:45:04 +00:00
parent 6ea3f92109
commit 0daa13b188
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ class StringIO:
self.buf = buf self.buf = buf
self.pos = 0 self.pos = 0
self.closed = 0 self.closed = 0
self.softspace = 0
def close(self): def close(self):
if not self.closed: if not self.closed:
self.closed = 1 self.closed = 1