summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-22 04:53:58 +0200
committerhut <hut@lavabit.com>2011-10-22 04:54:14 +0200
commit2970f6158daa8783302ce7005fe5b30d3b93d39e (patch)
tree7cd32e781d60aec65f4bb9b3373d1bffbc11c693
parentbe642580391f41ebdf0811766fee69405b932a42 (diff)
downloadranger-2970f6158daa8783302ce7005fe5b30d3b93d39e.tar.gz
ext.human_readable: Fixed spelling error (seperator->separator)
-rw-r--r--ranger/ext/human_readable.py24
-rw-r--r--ranger/fsobject/directory.py2
-rw-r--r--ranger/gui/widgets/statusbar.py8
3 files changed, 17 insertions, 17 deletions
diff --git a/ranger/ext/human_readable.py b/ranger/ext/human_readable.py
index 9cdce409..c5bd2aac 100644
--- a/ranger/ext/human_readable.py
+++ b/ranger/ext/human_readable.py
@@ -13,7 +13,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-def human_readable(byte, seperator=' '):
+def human_readable(byte, separator=' '):
 	"""
 	Convert a large number of bytes to an easily readable format.
 
@@ -27,27 +27,27 @@ def human_readable(byte, seperator=' '):
 	if byte <= 0:
 		return '0'
 	if byte < 2**10:
-		return '%d%sB'   % (byte, seperator)
+		return '%d%sB'   % (byte, separator)
 	if byte < 2**10 * 999:
-		return '%.3g%sK' % (byte / 2**10.0, seperator)
+		return '%.3g%sK' % (byte / 2**10.0, separator)
 	if byte < 2**20:
-		return '%.4g%sK' % (byte / 2**10.0, seperator)
+		return '%.4g%sK' % (byte / 2**10.0, separator)
 	if byte < 2**20 * 999:
-		return '%.3g%sM' % (byte / 2**20.0, seperator)
+		return '%.3g%sM' % (byte / 2**20.0, separator)
 	if byte < 2**30:
-		return '%.4g%sM' % (byte / 2**20.0, seperator)
+		return '%.4g%sM' % (byte / 2**20.0, separator)
 	if byte < 2**30 * 999:
-		return '%.3g%sG' % (byte / 2**30.0, seperator)
+		return '%.3g%sG' % (byte / 2**30.0, separator)
 	if byte < 2**40:
-		return '%.4g%sG' % (byte / 2**30.0, seperator)
+		return '%.4g%sG' % (byte / 2**30.0, separator)
 	if byte < 2**40 * 999:
-		return '%.3g%sT' % (byte / 2**40.0, seperator)
+		return '%.3g%sT' % (byte / 2**40.0, separator)
 	if byte < 2**50:
-		return '%.4g%sT' % (byte / 2**40.0, seperator)
+		return '%.4g%sT' % (byte / 2**40.0, separator)
 	if byte < 2**50 * 999:
-		return '%.3g%sP' % (byte / 2**50.0, seperator)
+		return '%.3g%sP' % (byte / 2**50.0, separator)
 	if byte < 2**60:
-		return '%.4g%sP' % (byte / 2**50.0, seperator)
+		return '%.4g%sP' % (byte / 2**50.0, separator)
 	return '>9000'
 
 if __name__ == '__main__':
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index e307e20a..ce6be623 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -194,7 +194,7 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware):
 					# time loading.  So I can't really be sure if the
 					# size has changed and I'll add a "?".
 					self.infostring = ' %s' % (human_readable(self.size,
-						seperator=('? ' if self.content_loaded else ' ')))
+						separator=('? ' if self.content_loaded else ' ')))
 				else:
 					self.size = len(filelist)
 					self.infostring = ' %d' % self.size
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index 1e2e2520..b7a238da 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -231,17 +231,17 @@ class StatusBar(Widget):
 
 		if target.marked_items:
 			if len(target.marked_items) == len(target.files):
-				right.add(human_readable(target.disk_usage, seperator=''))
+				right.add(human_readable(target.disk_usage, separator=''))
 			else:
 				right.add(human_readable(sum(f.size \
 					for f in target.marked_items \
-					if f.is_file), seperator=''))
+					if f.is_file), separator=''))
 			right.add("/" + str(len(target.marked_items)))
 		else:
-			right.add(human_readable(target.disk_usage, seperator='') +
+			right.add(human_readable(target.disk_usage, separator='') +
 					" sum, ")
 			right.add(human_readable(self.env.get_free_space( \
-					target.mount_path), seperator='') + " free")
+					target.mount_path), separator='') + " free")
 		right.add("  ", "space")
 
 		if target.marked_items:
96e7c298cc7fcf56517cb'>^
cb4a8bba ^
d526deb9 ^

cb4a8bba ^




d526deb9 ^


cb4a8bba ^
d526deb9 ^








cb4a8bba ^

d526deb9 ^


cb4a8bba ^
d526deb9 ^

342a1a7f ^
d526deb9 ^
cb4a8bba ^


d526deb9 ^





cb4a8bba ^

d526deb9 ^
cb4a8bba ^
d526deb9 ^

cb4a8bba ^

d526deb9 ^
cb4a8bba ^
















d526deb9 ^

cb4a8bba ^
d526deb9 ^

cb4a8bba ^
d526deb9 ^
cb4a8bba ^
d526deb9 ^

cb4a8bba ^
d526deb9 ^
cb4a8bba ^
d526deb9 ^






cb4a8bba ^
d526deb9 ^



cb4a8bba ^
d526deb9 ^

ee2ab290 ^
d526deb9 ^

cb4a8bba ^



d526deb9 ^
cb4a8bba ^

d526deb9 ^
cb4a8bba ^



d526deb9 ^













06968547 ^













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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355