diff MoinMoin/macro/WantedPages.py @ 551:17ab8fe4a94b

refactored some d.has_key(k) to k in d (faster) imported from: moin--main--1.5--patch-555
author Thomas Waldmann <tw@waldmann-edv.de>
date Tue, 11 Apr 2006 09:59:11 +0000
parents 2202f548cbb0
children 0152984f76ee
line wrap: on
line diff
--- a/MoinMoin/macro/WantedPages.py	Tue Apr 11 09:38:38 2006 +0000
+++ b/MoinMoin/macro/WantedPages.py	Tue Apr 11 09:59:11 2006 +0000
@@ -45,8 +45,8 @@
         # Add links to pages which does not exists in pages dict
         links = page.getPageLinks(request)
         for link in links:
-            if not pages.has_key(link):
-                if wanted.has_key(link):
+            if not link in pages:
+                if link in wanted:
                     wanted[link][name] = 1
                 else:
                     wanted[link] = {name: 1}