summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/fsobject.py2
-rw-r--r--ranger/core/actions.py4
-rw-r--r--ranger/gui/widgets/console.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/ranger/container/fsobject.py b/ranger/container/fsobject.py
index 2fd6ad26..272e1b21 100644
--- a/ranger/container/fsobject.py
+++ b/ranger/container/fsobject.py
@@ -91,7 +91,7 @@ class FileSystemObject(FileManagerAware, SettingsAware):
             path = abspath(path)
         self.path = path
         self.basename = basename(path)
-        if basename_is_rel_to == None:
+        if basename_is_rel_to is None:
             self.relative_path = self.basename
         else:
             self.relative_path = relpath(path, basename_is_rel_to)
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 6e89d997..0c2e5ce1 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
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 64474ac7..8bb37937 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -469,7 +469,7 @@ class Console(Widget):
                 self.pos = len(tab_result)
                 self.on_line_change()
 
-            elif tab_result == None:
+            elif tab_result is None:
                 pass
 
             elif hasattr(tab_result, '__iter__'):
^
ac07e589 ^



672e3e50 ^

a654e4ec ^



e5c11a51 ^






















a654e4ec ^

672e3e50 ^
e5c11a51 ^
e4ac3c9e ^
a654e4ec ^
204dae92 ^



805d58c6 ^
204dae92 ^

805d58c6 ^
204dae92 ^




805d58c6 ^

204dae92 ^

805d58c6 ^
204dae92 ^




805d58c6 ^


204dae92 ^

805d58c6 ^
204dae92 ^




805d58c6 ^



204dae92 ^

805d58c6 ^
204dae92 ^




805d58c6 ^
204dae92 ^

805d58c6 ^
204dae92 ^




805d58c6 ^
204dae92 ^

805d58c6 ^
204dae92 ^




805d58c6 ^
204dae92 ^

805d58c6 ^
204dae92 ^

672e3e50 ^


a654e4ec ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130