diff options
author | Georg Brandl <georg@python.org> | 2009-02-05 10:59:28 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-02-05 10:59:28 (GMT) |
commit | b21c75beab3d78b9ba28d19f5b9fedfe84688ace (patch) | |
tree | a052a055e9c6e5c4c0a9e3f44fa7570176af6253 /Doc | |
parent | acc802b1711da0fb7fd9cd04e3666c85965b7bb4 (diff) | |
download | cpython-b21c75beab3d78b9ba28d19f5b9fedfe84688ace.zip cpython-b21c75beab3d78b9ba28d19f5b9fedfe84688ace.tar.gz cpython-b21c75beab3d78b9ba28d19f5b9fedfe84688ace.tar.bz2 |
#5059: fix example.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/cookielib.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/cookielib.rst b/Doc/library/cookielib.rst index f55d6c2..12a12a0 100644 --- a/Doc/library/cookielib.rst +++ b/Doc/library/cookielib.rst @@ -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)) |