fix missing flush() calls
This commit is contained in:
parent
5a8509ab75
commit
7fa04fe1d2
5 changed files with 14 additions and 1 deletions
|
|
@ -76,6 +76,7 @@ class Boobank(ReplApplication):
|
|||
|
||||
for backend, operation in self.do(do, backends=names):
|
||||
self.format(operation)
|
||||
self.flush()
|
||||
|
||||
def complete_coming(self, text, line, *ignored):
|
||||
args = line.split(' ')
|
||||
|
|
@ -97,6 +98,7 @@ class Boobank(ReplApplication):
|
|||
|
||||
for backend, operation in self.do(do, backends=names):
|
||||
self.format(operation)
|
||||
self.flush()
|
||||
|
||||
def complete_transfer(self, text, line, *ignored):
|
||||
args = line.split(' ')
|
||||
|
|
@ -129,3 +131,4 @@ class Boobank(ReplApplication):
|
|||
|
||||
for backend, id_transfer in self.do(do, backends=names):
|
||||
self.format((('Transfer', str(id_transfer)),))
|
||||
self.flush()
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ class Chatoob(ReplApplication):
|
|||
"""
|
||||
for backend, contact in self.do('iter_contacts', status=Contact.STATUS_ONLINE, caps=ICapContact):
|
||||
self.format(contact)
|
||||
self.flush()
|
||||
|
||||
def do_messages(self, line):
|
||||
"""
|
||||
|
|
@ -52,6 +53,7 @@ class Chatoob(ReplApplication):
|
|||
"""
|
||||
for backend, message in self.do('iter_chat_messages'):
|
||||
self.format(message)
|
||||
self.flush()
|
||||
|
||||
def do_send(self, line):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -33,12 +33,13 @@ class Traveloob(ReplApplication):
|
|||
|
||||
def do_stations(self, pattern):
|
||||
"""
|
||||
search PATTERN
|
||||
stations PATTERN
|
||||
|
||||
Search stations.
|
||||
"""
|
||||
for backend, station in self.do('iter_station_search', pattern):
|
||||
self.format(station)
|
||||
self.flush()
|
||||
|
||||
def do_departures(self, line):
|
||||
"""
|
||||
|
|
@ -66,3 +67,4 @@ class Traveloob(ReplApplication):
|
|||
|
||||
for backend, departure in self.do('iter_station_departures', station_id, arrival_id, backends=backends):
|
||||
self.format(departure)
|
||||
self.flush()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ class WetBoobs(ReplApplication):
|
|||
"""
|
||||
for backend, city in self.do('iter_city_search', pattern):
|
||||
self.format(city)
|
||||
self.flush()
|
||||
|
||||
def do_current(self, city):
|
||||
"""
|
||||
|
|
@ -50,6 +51,7 @@ class WetBoobs(ReplApplication):
|
|||
try:
|
||||
for backend, current in self.do('get_current', city):
|
||||
self.format(current)
|
||||
self.flush()
|
||||
except CallErrors, e:
|
||||
for error in e:
|
||||
if isinstance(error, CityNotFound):
|
||||
|
|
@ -66,6 +68,7 @@ class WetBoobs(ReplApplication):
|
|||
try:
|
||||
for backend, forecast in self.do('iter_forecast', city):
|
||||
self.format(forecast)
|
||||
self.flush()
|
||||
except CallErrors, e:
|
||||
for error in e:
|
||||
if isinstance(error, CityNotFound):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue