From 0512137d3536a13c8715ac7d763bed34fc5bbc54 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Tue, 15 Dec 2009 16:21:38 +0000 Subject: [PATCH] tweak using enumerate() instead of more complicated zip(range(len())) alternative svn: r13809 --- src/gui/views/placebaseview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/views/placebaseview.py b/src/gui/views/placebaseview.py index d0a70ca39..eb87173c6 100644 --- a/src/gui/views/placebaseview.py +++ b/src/gui/views/placebaseview.py @@ -195,7 +195,7 @@ class PlaceBaseView(ListView): #select the map services to show self.mapservicedata = {} servlist = GuiPluginManager.get_instance().get_reg_mapservices() - for i, pdata in zip(range(len(servlist)), servlist): + for i, pdata in enumerate(servlist): key = pdata.id.replace(' ', '-') add_menuitem(menu, pdata.name, None, make_callback(self.set_mapservice, key))