diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2017-05-21 04:10:23 +0200 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2017-05-21 04:10:30 +0200 |
commit | 9048a77849d3236987e377a15efa7b577c617ced (patch) | |
tree | 7061332656b368521a2088a0861c1d4664d08f3e /ranger | |
parent | 2375cc577c24401149540b728ebcb92e3003df03 (diff) | |
download | ranger-9048a77849d3236987e377a15efa7b577c617ced.tar.gz |
Fix the pylint warnings
Diffstat (limited to 'ranger')
-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 |