diff MoinMoin/macro/SystemAdmin.py @ 1868:64507f46beb2

reduce usage of has_key()
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 10 Mar 2007 22:01:07 +0100
parents 6dd2e29acffe
children bb2e053067fb
line wrap: on
line diff
--- a/MoinMoin/macro/SystemAdmin.py	Sat Mar 10 20:54:09 2007 +0100
+++ b/MoinMoin/macro/SystemAdmin.py	Sat Mar 10 22:01:07 2007 +0100
@@ -44,7 +44,7 @@
     result.append(f.linebreak())
 
     # add chosen content
-    if _MENU.has_key(choice):
+    if choice in _MENU:
         result.append(f.rawHTML(_MENU[choice][1](request)))
 
     return ''.join(result)