summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2016-12-24 05:33:43 +0100
committernfnty <git@nfnty.se>2017-01-17 05:59:03 +0100
commit28f9a22f88084efbda98e497fc6852393ce03d7c (patch)
treee3b0e86f8e5476f68d48960325d30dd4f654ff76
parent6373f321ddb318152b9a367a465fa721f415f330 (diff)
downloadranger-28f9a22f88084efbda98e497fc6852393ce03d7c.tar.gz
linting: Enable `consider-iterating-dictionary`
-rw-r--r--.pylintrc2
-rw-r--r--ranger/container/bookmarks.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/.pylintrc b/.pylintrc
index db515b53..fd886447 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -8,7 +8,7 @@ max-branches=16
 
 [FORMAT]
 max-line-length = 99
-disable=locally-disabled,locally-enabled,missing-docstring,duplicate-code,fixme,consider-iterating-dictionary,broad-except,cyclic-import,attribute-defined-outside-init,access-member-before-definition
+disable=locally-disabled,locally-enabled,missing-docstring,duplicate-code,fixme,broad-except,cyclic-import,attribute-defined-outside-init,access-member-before-definition
 
 [TYPECHECK]
 ignored-classes=ranger.ext.openstruct.OpenStruct,ranger.core.runner.Context,ranger.core.actions.Actions,ranger.gui.widgets.view_base.ViewBase,ranger.gui.curses_shortcuts.CursesShortcuts
diff --git a/ranger/container/bookmarks.py b/ranger/container/bookmarks.py
index fd7fc017..964efcae 100644
--- a/ranger/container/bookmarks.py
+++ b/ranger/container/bookmarks.py
@@ -117,7 +117,7 @@ class Bookmarks(object):
         except OSError:
             return
 
-        for key in set(self.dct.keys()) | set(real_dict.keys()):
+        for key in set(self.dct) | set(real_dict):
             # set some variables
             if key in self.dct:
                 current = self.dct[key]