From b8c82ef8eb2d45822eeedc552dafae661840db2e Mon Sep 17 00:00:00 2001 From: stepshal Date: Thu, 16 Jun 2016 17:13:16 +0700 Subject: Remove reduntant blank lines --- ranger/colorschemes/default.py | 2 -- ranger/container/bookmarks.py | 1 - ranger/container/fsobject.py | 1 - ranger/container/settings.py | 1 - ranger/core/actions.py | 3 --- ranger/ext/img_display.py | 1 - ranger/ext/rifle.py | 3 --- ranger/gui/widgets/statusbar.py | 2 -- ranger/gui/widgets/taskview.py | 1 - 9 files changed, 15 deletions(-) diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py index 37b372a3..ca30e13f 100644 --- a/ranger/colorschemes/default.py +++ b/ranger/colorschemes/default.py @@ -107,7 +107,6 @@ class Default(ColorScheme): fg = cyan attr &= ~bold - if context.text: if context.highlight: attr |= reverse @@ -125,7 +124,6 @@ class Default(ColorScheme): else: bg = self.progress_bar_color - if context.vcsfile and not context.selected: attr &= ~bold if context.vcsconflict: diff --git a/ranger/container/bookmarks.py b/ranger/container/bookmarks.py index 02f3e3bc..6b3bc386 100644 --- a/ranger/container/bookmarks.py +++ b/ranger/container/bookmarks.py @@ -71,7 +71,6 @@ class Bookmarks(object): del self.dct[key] if self.autosave: self.save() - def __iter__(self): return iter(self.dct.items()) diff --git a/ranger/container/fsobject.py b/ranger/container/fsobject.py index fff29c36..5c83adf3 100644 --- a/ranger/container/fsobject.py +++ b/ranger/container/fsobject.py @@ -119,7 +119,6 @@ class FileSystemObject(FileManagerAware, SettingsAware): self._linemode = linemode break - def __repr__(self): return "<{0} {1}>".format(self.__class__.__name__, self.path) diff --git a/ranger/container/settings.py b/ranger/container/settings.py index 85729907..ae6f77f7 100644 --- a/ranger/container/settings.py +++ b/ranger/container/settings.py @@ -200,7 +200,6 @@ class Settings(SignalDispatcher, FileManagerAware): else: return (typ, ) - def _check_type(self, name, value): typ = ALLOWED_SETTINGS[name] if isfunction(typ): diff --git a/ranger/core/actions.py b/ranger/core/actions.py index a39cef21..e5d3af24 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -92,7 +92,6 @@ class Actions(FileManagerAware, SettingsAware): self.settings.set(option_name, self._parse_option_value(option_name, value), localpath, tags) - def _parse_option_value(self, name, value): types = self.fm.settings.types_of(name) if bool in types: @@ -479,7 +478,6 @@ class Actions(FileManagerAware, SettingsAware): if self.ui.pager.visible: self.display_file() - def move_parent(self, n, narg=None): self.change_mode('normal') if narg is not None: @@ -930,7 +928,6 @@ class Actions(FileManagerAware, SettingsAware): if data['loading']: return None - found = data.get((-1, -1), data.get((width, -1), data.get((-1, height), data.get((width, height), False)))) if found == False: diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 0c6a11d4..b834b755 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -242,7 +242,6 @@ class ITerm2ImageDisplayer(ImageDisplayer, FileManagerAware): else: return width - def _encode_image_content(self, path): """Read and encode the contents of path""" file = open(path, 'rb') diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index eadbc110..b1467c34 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -398,7 +398,6 @@ def main(): else: conf_path = os.path.join(ranger.__path__[0], "config", "rifle.conf") - # Evaluate arguments from optparse import OptionParser parser = OptionParser(usage="%prog [-fhlpw] [files]", version=__version__) @@ -448,8 +447,6 @@ def main(): # TODO: implement interactive asking for file type? print("Unknown file type: %s" % rifle._get_mimetype(positional[0])) - - if __name__ == '__main__': if 'RANGER_DOCTEST' in os.environ: import doctest diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index 8786af06..e6e57e6b 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -229,8 +229,6 @@ class StatusBar(Widget): except KeyError: return str(gid) - - def _get_right_part(self, bar): right = bar.right if self.column is None: diff --git a/ranger/gui/widgets/taskview.py b/ranger/gui/widgets/taskview.py index 04fdfe0e..29fdaeaf 100644 --- a/ranger/gui/widgets/taskview.py +++ b/ranger/gui/widgets/taskview.py @@ -71,7 +71,6 @@ class TaskView(Widget, Accumulator): y = self.y + 1 + self.pointer - self.scroll_begin self.fm.ui.win.move(y, self.x) - def task_remove(self, i=None): if i is None: i = self.pointer -- cgit 1.4.1-2-gfad0 artik/mu/commit/041jump_label.cc?h=main&id=bc6436927640603675e2e700007f53c5ab213869'>bc643692 ^
dc1323e9 ^



b142a762 ^
363be37f ^
b142a762 ^
dc1323e9 ^



363be37f ^
ac0e9db5 ^

dc1323e9 ^
4adb09bc ^









dc1323e9 ^
ac0e9db5 ^
dc1323e9 ^
363be37f ^
4071055a ^
dc1323e9 ^
363be37f ^
4071055a ^
dc1323e9 ^
363be37f ^
ac0e9db5 ^
4071055a ^
dc1323e9 ^
363be37f ^

ac0e9db5 ^
4071055a ^
dc1323e9 ^




363be37f ^
e4630643 ^

4adb09bc ^
e4630643 ^

dc1323e9 ^
0f125d5f ^
4adb09bc ^





e4630643 ^
4adb09bc ^


827898fc ^
dc1323e9 ^

4adb09bc ^



dc1323e9 ^

dc1323e9 ^

8ba8f0f6 ^
bc643692 ^
dc1323e9 ^









bc643692 ^

dc1323e9 ^









bc643692 ^

dc1323e9 ^




4071055a ^



bc643692 ^


8ba8f0f6 ^
bc643692 ^
4071055a ^
bc643692 ^
4071055a ^


4adb09bc ^























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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158