summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-06-19 10:55:10 +0700
committerstepshal <nessento@openmailbox.org>2016-06-19 11:55:20 +0700
commit83d3b48287d57d4f65ba21c603ebffbe723f1fc3 (patch)
treec1cc7353412514ee8c061b4c50cdb4ae17c0cacb /ranger
parent904d3df13a96c2ded55919ff2a3ed873b8da3c9e (diff)
downloadranger-83d3b48287d57d4f65ba21c603ebffbe723f1fc3.tar.gz
Comparison to True/False should be 'if cond is True/False:' or 'if not cond:'.
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/actions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 642eec04..6e89d997 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -149,7 +149,7 @@ class Actions(FileManagerAware, SettingsAware):
             if ranger.arg.debug:
                 raise
             bad = True
-        elif bad == True and ranger.arg.debug:
+        elif bad is True and ranger.arg.debug:
             raise Exception(str(text))
         text = str(text)
         self.log.appendleft(text)
@@ -515,7 +515,7 @@ class Actions(FileManagerAware, SettingsAware):
         # csh variable is lowercase
         cdpath = os.environ.get('CDPATH', None) or os.environ.get('cdpath', None)
         result = self.thistab.enter_dir(path, history=history)
-        if result == False and cdpath:
+        if result is False and cdpath:
             for p in cdpath.split(':'):
                 curpath = os.path.join(p, path)
                 if os.path.isdir(curpath):
@@ -932,7 +932,7 @@ class Actions(FileManagerAware, SettingsAware):
 
             found = data.get((-1, -1), data.get((width, -1),
                 data.get((-1, height), data.get((width, height), False))))
-            if found == False:
+            if found is False:
                 try:
                     stat_ = os.stat(self.settings.preview_script)
                 except: