Um, made urlSnarfer do what it was actually intended to do :)

This commit is contained in:
Jeremy Fincher 2003-11-17 07:27:21 +00:00
parent 7cbec39d55
commit a2a97c1d83

View File

@ -163,8 +163,11 @@ def urlSnarfer(f):
q = getattr(self, '_snarfedUrls', None)
if q is None:
q = structures.smallqueue()
self._snarfedUrls = q
#debug.printf('before pruning: %r' % q)
while q and q[0][2] < cutoff:
q.dequeue()
#debug.printf('after pruning: %r' % q)
url = match.group(0)
if any(lambda t: t[0] == url and t[1] == msg.args[0], q) and \
not world.testing: