mirror of https://github.com/scrapy/scrapy.git
fix broken doctests
This commit is contained in:
parent
32b781a1b8
commit
5ba2b60a4b
|
|
@ -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('')
|
||||
{}
|
||||
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue