From 23515067525ea5e287ec9a7666c37ec2bd807c57 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 7 Mar 2009 00:19:19 +0100 Subject: [PATCH] Use plain list for info strings. --- linkcheck/checker/urlbase.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linkcheck/checker/urlbase.py b/linkcheck/checker/urlbase.py index 6ae870b9..65bbcc73 100644 --- a/linkcheck/checker/urlbase.py +++ b/linkcheck/checker/urlbase.py @@ -138,8 +138,8 @@ class UrlBase (object): self.valid = True # list of warnings (without duplicates) self.warnings = containers.SetList() - # list of infos (without duplicates) - self.info = containers.SetList() + # list of infos + self.info = [] # download time self.dltime = -1 # download size @@ -241,7 +241,8 @@ class UrlBase (object): """ Add an info string. """ - self.info.append(s) + if s not in self.info: + self.info.append(s) def copy_from_cache (self, cache_data): """