From 5ba2b60a4b9f991e8a99a8dfcefaee0fe452a75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gra=C3=B1a?= Date: Thu, 25 Apr 2013 11:56:56 -0300 Subject: [PATCH] fix broken doctests --- scrapy/contrib/httpcache.py | 4 ++-- scrapy/http/cookies.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scrapy/contrib/httpcache.py b/scrapy/contrib/httpcache.py index be5af1604..d952f43e8 100644 --- a/scrapy/contrib/httpcache.py +++ b/scrapy/contrib/httpcache.py @@ -288,9 +288,9 @@ def parse_cachecontrol(header): http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 - >>> cachecontrol_directives('public, max-age=3600') + >>> parse_cachecontrol('public, max-age=3600') {'public': None, 'max-age': '3600'} - >>> cachecontrol_directives('') + >>> parse_cachecontrol('') {} """ diff --git a/scrapy/http/cookies.py b/scrapy/http/cookies.py index a3846dadb..8ad8de290 100644 --- a/scrapy/http/cookies.py +++ b/scrapy/http/cookies.py @@ -80,7 +80,7 @@ def potential_domain_matches(domain): """Potential domain matches for a cookie >>> potential_domain_matches('www.example.com') - ['www.example.com', 'example.com'] + ['www.example.com', 'example.com', '.www.example.com', '.example.com'] """ matches = [domain]