Pylint Fixes
This commit is contained in:
parent
0ae2112603
commit
1f02e97175
|
@ -39,7 +39,7 @@ def getSortedSubscriptions(count=False):
|
||||||
:param count: Whether to count messages for each fromaddress in the inbox
|
:param count: Whether to count messages for each fromaddress in the inbox
|
||||||
:type count: bool, default False
|
:type count: bool, default False
|
||||||
:retuns: dict keys are addresses, values are dicts containing settings
|
:retuns: dict keys are addresses, values are dicts containing settings
|
||||||
:rtype: dict, default {}"""
|
:rtype: dict, default {}""" # pylint: disable=pointless-string-statement
|
||||||
queryreturn = sqlQuery(
|
queryreturn = sqlQuery(
|
||||||
'SELECT label, address, enabled FROM subscriptions \
|
'SELECT label, address, enabled FROM subscriptions \
|
||||||
ORDER BY label COLLATE NOCASE ASC')
|
ORDER BY label COLLATE NOCASE ASC')
|
||||||
|
@ -90,7 +90,7 @@ def accountClass(address):
|
||||||
return cls(address)
|
return cls(address)
|
||||||
# general gateway
|
# general gateway
|
||||||
return GatewayAccount(address)
|
return GatewayAccount(address)
|
||||||
except Exception:
|
except Exception: # pylint: disable=broad-except
|
||||||
pass
|
pass
|
||||||
# no gateway
|
# no gateway
|
||||||
return BMAccount(address)
|
return BMAccount(address)
|
||||||
|
|
Reference in New Issue
Block a user