summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parentbe642580391f41ebdf0811766fee69405b932a42 (diff)
downloadranger-2970f6158daa8783302ce7005fe5b30d3b93d39e.tar.gz
ext.human_readable: Fixed spelling error (seperator->separator)
Diffstat (limited to 'ranger')
-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:
06-07-15 16:30:50 +0200 rearranged several stuff' href='/acidbong/suckless/dwm/commit/tag.c?h=5.9&id=dba23062bad40afb1a90f60b6897cf9e1ca5035b'>dba2306 ^
72707c2 ^
ca65478 ^
d7413ff ^
72707c2 ^


dba2306 ^
6b25d06 ^
e21d93b ^




61a1910 ^
e21d93b ^
e21d93b ^


c53d9d5 ^
e21d93b ^





c53d9d5 ^
e21d93b ^






d4b7a9a ^
ca65478 ^
d6a6eca ^
e21d93b ^
bcaf6a7 ^
aaad7bf ^
bcaf6a7 ^
adaa28a ^
aaad7bf ^




61a1910 ^
bcaf6a7 ^
d6a6eca ^
c53d9d5 ^
d6a6eca ^
e21d93b ^





adaa28a ^
bcaf6a7 ^
adaa28a ^




adaa28a ^
d7413ff ^
292ccc4 ^
adaa28a ^


ca65478 ^
19da197 ^



19da197 ^
42fd392 ^
7009ebf ^

5983c00 ^
19da197 ^


ca65478 ^
d7413ff ^

19da197 ^

19da197 ^



5983c00 ^
292ccc4 ^
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