From bf6fd637e1498ddd44dc26b9019cf544872823c9 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 31 Mar 2010 06:43:49 +0200 Subject: fsobject.loader: optimization (use enumerate rather than zip) --- ranger/fsobject/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0