Use class attributes as much as possible for application output

refs #803
This commit is contained in:
Laurent Bachelier 2014-09-03 01:22:18 +02:00
commit c07e23cafc
35 changed files with 228 additions and 260 deletions

View file

@ -19,7 +19,6 @@
import sys
from weboob.capabilities.lyrics import CapLyrics
from weboob.capabilities.base import empty
@ -85,7 +84,7 @@ class Booblyrics(ReplApplication):
songlyrics = self.get_object(id, 'get_lyrics')
if not songlyrics:
print >>sys.stderr, 'Song lyrics not found: %s' % id
print >>self.stderr, 'Song lyrics not found: %s' % id
return 3
self.start_format()