diff options
author | hut <hut@lepus.uberspace.de> | 2016-06-21 01:08:11 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2016-06-21 01:08:11 +0200 |
commit | f1aabc21f3a6e39c7cf07c2c3ae7cdb8a8da4928 (patch) | |
tree | 7d8f6748daffb9102d7823a9b48256a3a7136749 /ranger | |
parent | 8bd0a3c84e812aff4828472daf391a135a2129a8 (diff) | |
parent | 83d3b48287d57d4f65ba21c603ebffbe723f1fc3 (diff) | |
download | ranger-f1aabc21f3a6e39c7cf07c2c3ae7cdb8a8da4928.tar.gz |
Merge branch 'comparison1' of https://github.com/stepshal/ranger
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 6 |
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: |