diff MoinMoin/macro/__init__.py @ 1870:9406e02388cf

reduce usage of .keys()
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 10 Mar 2007 23:16:23 +0100
parents b180f047d918
children bb2e053067fb
line wrap: on
line diff
--- a/MoinMoin/macro/__init__.py	Sat Mar 10 22:54:25 2007 +0100
+++ b/MoinMoin/macro/__init__.py	Sat Mar 10 23:16:23 2007 +0100
@@ -80,7 +80,7 @@
 
     # we need the lang macros to execute when html is generated,
     # to have correct dir and lang html attributes
-    for lang in i18n.wikiLanguages().keys():
+    for lang in i18n.wikiLanguages():
         Dependencies[lang] = []
 
 
@@ -197,8 +197,7 @@
                     map[word] = [name]
 
         # Sort ignoring case
-        all_words = map.keys()
-        tmp = [(word.upper(), word) for word in all_words]
+        tmp = [(word.upper(), word) for word in map]
         tmp.sort()
         all_words = [item[1] for item in tmp]