Skip to content

Commit

Permalink
Add flush() methods; RandomLevels calls them.
Browse files Browse the repository at this point in the history
  • Loading branch information
arigo committed May 21, 2006
1 parent c1db314 commit 8e1c403
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common/stdlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def writelines(self, data):
if self._check():
self.f.writelines(data)

def flush(self):
if self._check():
self.f.flush()


class Logger:
stdout_captured = 0
Expand Down Expand Up @@ -96,3 +100,7 @@ def write(self, data):
def writelines(self, data):
for f in self.targets:
f.writelines(data)

def flush(self):
for f in self.targets:
f.flush()

0 comments on commit 8e1c403

Please sign in to comment.