summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-31 06:43:49 +0200
committerhut <hut@lavabit.com>2010-03-31 06:43:49 +0200
commitbf6fd637e1498ddd44dc26b9019cf544872823c9 (patch)
tree1e6de66f2ed8de8100004f1bcb9c13ce4438474b /ranger
parentc325316f5b1e870a592753178206ad8868b30653 (diff)
downloadranger-bf6fd637e1498ddd44dc26b9019cf544872823c9.tar.gz
fsobject.loader: optimization (use enumerate rather than zip)
Diffstat (limited to 'ranger')
-rw-r--r--ranger/fsobject/loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/fsobject/loader.py b/ranger/fsobject/loader.py
index b47dd9c9..4f4424e4 100644
--- a/ranger/fsobject/loader.py
+++ b/ranger/fsobject/loader.py
@@ -77,7 +77,7 @@ class Loader(FileManagerAware):
 
 	def remove(self, item=None, index=None):
 		if item is not None and index is None:
-			for test, i in zip(self.queue, range(len(self.queue))):
+			for i, test in enumerate(self.queue):
 				if test == item:
 					index = i 
 					break
vision' href='/akspecs/ranger/blame/Makefile?h=v1.9.3&id=fff320285cfd4844547afac4056b788b2db3a2ee'>^
1295513f ^
94c5d83e ^
e9e4b4ff ^







94c5d83e ^







76f8d548 ^



94c5d83e ^


423ce88a ^

94c5d83e ^








e9e4b4ff ^

50a0cb1c ^
e9e4b4ff ^

cec158da ^
e9e4b4ff ^
fde932f2 ^
e9e4b4ff ^


2c5ea01d ^
e9e4b4ff ^




e9e4b4ff ^

2c5ea01d ^
e9e4b4ff ^
0c2c782d ^

6ac4be61 ^
ea775b1c ^








6ac4be61 ^
ea775b1c ^

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