about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-08-27 20:06:28 +0200
committertoonn <toonn@toonn.io>2021-08-27 20:06:28 +0200
commit0156b1a9ea31df6335c2f1f7ead57ad2afd741d5 (patch)
tree8f2767f202de9b45c45a1e16aaeaa1686ef7f6f4
parent18033b2d787be1108041c3e45991622e750107f6 (diff)
downloadranger-0156b1a9ea31df6335c2f1f7ead57ad2afd741d5.tar.gz
settings: Switch to dict literals
-rw-r--r--ranger/container/settings.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/ranger/container/settings.py b/ranger/container/settings.py
index e7d6775d..e083c5ac 100644
--- a/ranger/container/settings.py
+++ b/ranger/container/settings.py
@@ -136,10 +136,10 @@ class Settings(SignalDispatcher, FileManagerAware):
 
     def __init__(self):
         SignalDispatcher.__init__(self)
-        self.__dict__['_localsettings'] = dict()
-        self.__dict__['_localregexes'] = dict()
-        self.__dict__['_tagsettings'] = dict()
-        self.__dict__['_settings'] = dict()
+        self.__dict__['_localsettings'] = {}
+        self.__dict__['_localregexes'] = {}
+        self.__dict__['_tagsettings'] = {}
+        self.__dict__['_settings'] = {}
         for name in ALLOWED_SETTINGS:
             self.signal_bind('setopt.' + name, self._sanitize,
                              priority=SIGNAL_PRIORITY_SANITIZE)
@@ -285,7 +285,7 @@ class Settings(SignalDispatcher, FileManagerAware):
                 except re.error:  # Bad regular expression
                     return
                 self._localregexes[path] = regex
-                self._localsettings[path] = dict()
+                self._localsettings[path] = {}
             self._localsettings[path][name] = value
 
             # make sure name is in _settings, so __iter__ runs through
@@ -297,7 +297,7 @@ class Settings(SignalDispatcher, FileManagerAware):
         elif tags:
             for tag in tags:
                 if tag not in self._tagsettings:
-                    self._tagsettings[tag] = dict()
+                    self._tagsettings[tag] = {}
                 self._tagsettings[tag][name] = value
         else:
             self._settings[name] = value