no more need to print format result

This commit is contained in:
Christophe Benz 2010-05-15 04:56:59 +02:00
commit 0c425a2e9b
6 changed files with 12 additions and 18 deletions

View file

@ -62,7 +62,7 @@ class Weboorrents(ConsoleApplication):
if not torrent:
logging.error('Torrent "%s" not found' % id)
return 1
print self.format(torrent)
self.format(torrent)
@ConsoleApplication.command('Get the torrent file')
def command_getfile(self, id, dest):
@ -86,4 +86,4 @@ class Weboorrents(ConsoleApplication):
def command_search(self, pattern=None):
print u'Search pattern: %s' % pattern if pattern else u'Last torrents'
for backend, torrent in self.weboob.do('iter_torrents', pattern=pattern):
print self.format(torrent)
self.format(torrent)