fix missing flush() calls

This commit is contained in:
Romain Bignon 2010-10-08 13:46:00 +02:00
commit 7fa04fe1d2
5 changed files with 14 additions and 1 deletions

View file

@ -48,6 +48,8 @@ class Weboorrents(ReplApplication):
if not found:
print >>sys.stderr, 'Torrent "%s" not found' % id
else:
self.flush()
def do_getfile(self, line):
"""
@ -83,3 +85,4 @@ class Weboorrents(ReplApplication):
self.set_formatter_header(u'Search pattern: %s' % pattern if pattern else u'Latest torrents')
for backend, torrent in self.do('iter_torrents', pattern=pattern):
self.format(torrent)
self.flush()