From 19c1bfa36867f78ac54ee907054b7264f18783ba Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 9 Nov 2010 23:38:29 +0000 Subject: [PATCH] just a precaution (now i really need to go for a sleep) --- lib/request/comparison.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/request/comparison.py b/lib/request/comparison.py index 65c5a5464..08a6d7a9c 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -114,8 +114,9 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None): elif ratio == 1: return True - # If the url is not stable it returns sequence matcher between the - # first untouched HTTP response page content and this content + elif conf.matchRatio is None: + return None + else: if conf.matchRatio == CONSTANT_RATIO or conf.thold: return ratio > conf.matchRatio