diff options
-rw-r--r-- | ranger/container/directory.py | 5 | ||||
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ranger/container/directory.py b/ranger/container/directory.py index dac87650..b50279cc 100644 --- a/ranger/container/directory.py +++ b/ranger/container/directory.py @@ -254,6 +254,11 @@ class Directory( # pylint: disable=too-many-instance-attributes,too-many-public return True filters.append(hidden_filter_func) if self.narrow_filter: + # pylint: disable=unsupported-membership-test + + # Pylint complains that self.narrow_filter is by default + # None but the execution won't reach this line if it is + # still None. filters.append(lambda fobj: fobj.basename in self.narrow_filter) if self.filter: filter_search = self.filter.search diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index 1e2a253c..980945dc 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -234,7 +234,7 @@ class StatusBar(Widget): # pylint: disable=too-many-instance-attributes except KeyError: return str(gid) - def _get_right_part(self, bar): # pylint: disable=too-many-branches + def _get_right_part(self, bar): # pylint: disable=too-many-branches,too-many-statements right = bar.right if self.column is None: return |