From ee1dece0dd053cb32f86ac4ce16a2a1c0e0efa1d Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Tue, 2 Jan 2007 16:08:01 +0000
Subject: [PATCH] Minor optimization: only search for the redirect link inside
 the contentSub element.

---
 check_datorhandbok | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_datorhandbok b/check_datorhandbok
index 90535bb..315415e 100755
--- a/check_datorhandbok
+++ b/check_datorhandbok
@@ -41,7 +41,7 @@ def check_host(hostname):
     if csub.findNext(attrs={"alt": "#REDIRECT"}):
         warning(hostname, "broken redirect")
 
-    redirected_from = tree.find(
+    redirected_from = csub.find(
         "a",
         attrs={"href":
                "/index.php?title=%s&amp;redirect=no" % hostname.capitalize()})
-- 
GitLab