mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Remove list(dict.keys()) --> dict.keys() and list(dict.values()) --> dict.values()
This commit is contained in:
parent
f4eff8a8c5
commit
e26182c96e
7 changed files with 15 additions and 15 deletions
|
@ -692,7 +692,7 @@ class Config(object):
|
|||
""" Initialize the config with values from a file """
|
||||
self._config_file = config_file
|
||||
self._config = ConfigObj(self._config_file, encoding='utf-8')
|
||||
for key in list(_CONFIG_DEFINITIONS.keys()):
|
||||
for key in _CONFIG_DEFINITIONS:
|
||||
self.check_setting(key)
|
||||
self._upgrade()
|
||||
self._blacklist()
|
||||
|
@ -752,7 +752,7 @@ class Config(object):
|
|||
new_config[key][subkey] = value
|
||||
|
||||
# next make sure that everything we expect to have defined is so
|
||||
for key in list(_CONFIG_DEFINITIONS.keys()):
|
||||
for key in _CONFIG_DEFINITIONS:
|
||||
key, definition_type, section, ini_key, default = self._define(key)
|
||||
self.check_setting(key)
|
||||
if section not in new_config:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue