From b6e44e8d22ec14b1aaeb095774372c715cc11050 Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 7 May 2014 09:35:05 +0200 Subject: [PATCH] Remove the "is CapBaseObject" condition A module has to always return a CapBaseObject, this condition is not usefull --- weboob/tools/application/repl.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index befdfd83..7f0d9819 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -1026,10 +1026,7 @@ class ReplApplication(Cmd, ConsoleApplication): for obj in objects: if only is False or not hasattr(obj, 'id') or obj.id in only: - if isinstance(obj, CapBaseObject): - self.cached_format(obj) - else: - print obj + self.cached_format(obj) if path: # Let's go back to the parent directory