diff MoinMoin/macro/FullSearch.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 b180f047d918
children bb2e053067fb
line wrap: on
line diff
--- a/MoinMoin/macro/FullSearch.py	Sat Mar 10 20:54:09 2007 +0100
+++ b/MoinMoin/macro/FullSearch.py	Sat Mar 10 22:01:07 2007 +0100
@@ -42,7 +42,7 @@
     @return: search box html fragment
     """
     _ = macro._
-    if macro.form.has_key('value'):
+    if 'value' in macro.form:
         default = wikiutil.escape(macro.form["value"][0], quote=1)
     else:
         default = ''