From 7be3479c204c2b110bc79cd8bdc9c7bdd1519163 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Sun, 21 Sep 2014 06:37:32 +0600 Subject: [PATCH] CookieJar cleanup --- scrapy/http/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/http/cookies.py b/scrapy/http/cookies.py index 3e3dff741..b1eb767cc 100644 --- a/scrapy/http/cookies.py +++ b/scrapy/http/cookies.py @@ -28,7 +28,7 @@ class CookieJar(object): if not IPV4_RE.search(req_host): hosts = potential_domain_matches(req_host) - if req_host.find(".") == -1: + if '.' not in req_host: hosts += [req_host + ".local"] else: hosts = [req_host]