diff MoinMoin/formatter/__init__.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 ebcebba1afb3
children 1405a38ae848
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Sat Mar 10 20:54:09 2007 +0100
+++ b/MoinMoin/formatter/__init__.py	Sat Mar 10 22:01:07 2007 +0100
@@ -158,7 +158,7 @@
         """
         title = src
         for titleattr in ('title', 'html__title', 'alt', 'html__alt'):
-            if kw.has_key(titleattr):
+            if titleattr in kw:
                 title = kw[titleattr]
                 break
         if title: