Small stylistic update (now it's a little more readable).

This commit is contained in:
Jeremy Fincher 2004-02-10 00:53:58 +00:00
parent 6ebc226e00
commit 0098784ffd

View File

@ -171,9 +171,10 @@ def urlSnarfer(f):
while q and q[0][2] < cutoff: while q and q[0][2] < cutoff:
q.dequeue() q.dequeue()
url = match.group(0) url = match.group(0)
if any(lambda t: t[0] == url and t[1] == msg.args[0], q) and \ for (qUrl, target, when) in q:
not world.testing: if url == qUrl and target == msg.args[0] and not world.testing:
self.log.warning('Refusing to snarf %s from %r.', url, msg.prefix) self.log.warning('Not snarfing %s from %r.', url, msg.prefix)
return
else: else:
q.enqueue((url, msg.args[0], now)) q.enqueue((url, msg.args[0], now))
if self.threaded: if self.threaded: