summary refs log tree commit diff stats
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
parentc325316f5b1e870a592753178206ad8868b30653 (diff)
downloadranger-bf6fd637e1498ddd44dc26b9019cf544872823c9.tar.gz
fsobject.loader: optimization (use enumerate rather than zip)
-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