mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Remove list(dict.items()) -- >dict.items()
This commit is contained in:
parent
2b0e7daf7c
commit
ad112e0a44
12 changed files with 38 additions and 38 deletions
|
@ -62,7 +62,7 @@ def blacklist_config(config):
|
|||
blacklist = set()
|
||||
blacklist_keys = ['HOOK', 'APIKEY', 'KEY', 'PASSWORD', 'TOKEN']
|
||||
|
||||
for key, value in list(config.items()):
|
||||
for key, value in config.items():
|
||||
if isinstance(value, basestring) and len(value.strip()) > 5 and \
|
||||
key.upper() not in _WHITELIST_KEYS and (key.upper() in blacklist_keys or
|
||||
any(bk in key.upper() for bk in _BLACKLIST_KEYS)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue