diff options
author | toonn <toonn@toonn.io> | 2020-11-18 18:45:17 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2020-11-18 18:45:17 +0100 |
commit | 87fec7f1a73b3042b47d160cefcaa303c63664ea (patch) | |
tree | c122ad8b2beac2187755c855a6f4849c97da61aa | |
parent | 3645972216c01bddccf32eefb4900fd3b2782e9a (diff) | |
download | ranger-87fec7f1a73b3042b47d160cefcaa303c63664ea.tar.gz |
Use identity rather than equality comparison for None
-rw-r--r-- | ranger/gui/widgets/view_multipane.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/view_multipane.py b/ranger/gui/widgets/view_multipane.py index 0a4e3a25..cef8d9a8 100644 --- a/ranger/gui/widgets/view_multipane.py +++ b/ranger/gui/widgets/view_multipane.py @@ -23,7 +23,7 @@ class ViewMultipane(ViewBase): # pylint: disable=too-many-ancestors # If draw_borders_multipane has not been set, it defaults to `None` # and we fallback to using draw_borders. Important to note: # `None` is different from the string "none" referring to no borders - if self.settings.draw_borders_multipane != None: + if self.settings.draw_borders_multipane is not None: return self.settings.draw_borders_multipane else: return self.settings.draw_borders |