summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-06-19 10:28:00 +0700
committerstepshal <nessento@openmailbox.org>2016-06-19 11:46:48 +0700
commit54bd26be79e83f04e9be147151aa4a57ba1d257d (patch)
tree60307375f423bfd052d1a53e98be3a5dbff9cc17 /ranger/core/actions.py
parent904d3df13a96c2ded55919ff2a3ed873b8da3c9e (diff)
downloadranger-54bd26be79e83f04e9be147151aa4a57ba1d257d.tar.gz
comparison to None should be 'if cond is None:'
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 642eec04..1d85ea04 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -121,7 +121,7 @@ class Actions(FileManagerAware, SettingsAware):
         """
         if self.mode == 'normal':
             self._visual_reverse = reverse
-            if narg != None:
+            if narg is not None:
                 self.mark_files(val=not reverse, narg=narg)
             self.change_mode('visual')
         else:
@@ -645,7 +645,7 @@ class Actions(FileManagerAware, SettingsAware):
         if val is None and toggle is False:
             return
 
-        if narg == None:
+        if narg is None:
             narg = 1
         else:
             all = False