diff MoinMoin/macro/Include.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 bb2e053067fb
line wrap: on
line diff
--- a/MoinMoin/macro/Include.py	Sat Mar 10 20:54:09 2007 +0100
+++ b/MoinMoin/macro/Include.py	Sat Mar 10 22:01:07 2007 +0100
@@ -100,7 +100,7 @@
     for inc_name in pagelist:
         if not request.user.may.read(inc_name):
             continue
-        if this_page._macroInclude_pagelist.has_key(inc_name):
+        if inc_name in this_page._macroInclude_pagelist:
             result.append(u'<p><strong class="error">Recursive include of "%s" forbidden</strong></p>' % (inc_name,))
             continue
         if skipitems: