#5059: fix example.
This commit is contained in:
parent
acc802b171
commit
b21c75beab
|
@ -769,7 +769,7 @@ returned::
|
|||
import urllib2
|
||||
from cookielib import CookieJar, DefaultCookiePolicy
|
||||
policy = DefaultCookiePolicy(
|
||||
rfc2965=True, strict_ns_domain=Policy.DomainStrict,
|
||||
rfc2965=True, strict_ns_domain=DefaultCookiePolicy.DomainStrict,
|
||||
blocked_domains=["ads.net", ".ads.net"])
|
||||
cj = CookieJar(policy)
|
||||
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
|
||||
|
|
Loading…
Reference in New Issue