tweak using enumerate() instead of more complicated zip(range(len())) alternative

svn: r13809
This commit is contained in:
Gerald Britton 2009-12-15 16:21:38 +00:00
parent cb721e6ad3
commit 0512137d35

View File

@ -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))