compare instance to basestring instead of (str, unicode)
This commit is contained in:
parent
3ced2bee38
commit
8afff42465
9 changed files with 13 additions and 13 deletions
|
|
@ -284,7 +284,7 @@ class ConsoleApplication(BaseApplication):
|
|||
if caps is not None:
|
||||
if not isinstance(caps, (list, tuple, set)):
|
||||
caps = (caps,)
|
||||
caps = [(cap if isinstance(cap, (str,unicode)) else cap.__name__) for cap in caps]
|
||||
caps = [(cap if isinstance(cap, basestring) else cap.__name__) for cap in caps]
|
||||
weboobcfg.command_backends(*caps)
|
||||
logging.error(u'You can configure backends using the "weboob-config add" command:\nweboob-config add <name> [options..]')
|
||||
with open('/dev/null', 'w') as devnull:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue