From 28f9a22f88084efbda98e497fc6852393ce03d7c Mon Sep 17 00:00:00 2001 From: nfnty Date: Sat, 24 Dec 2016 05:33:43 +0100 Subject: linting: Enable `consider-iterating-dictionary` --- .pylintrc | 2 +- ranger/container/bookmarks.py | 2 +- 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] -- cgit 1.4.1-2-gfad0