This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Policy.DomainStrict in cookielib example code
Type: compile error Stage:
Components: Documentation Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: babo, georg.brandl
Priority: normal Keywords:

Created on 2009-01-25 19:45 by babo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg80535 - (view) Author: Attila Babo (babo) Date: 2009-01-25 19:45
Example code at the bottom of cookielib documentation has an error:
policy = DefaultCookiePolicy(
    rfc2965=True, strict_ns_domain=Policy.DomainStrict,
    blocked_domains=["ads.net", ".ads.net"])

The corrected version is
policy = DefaultCookiePolicy(
    rfc2965=True, strict_ns_domain= DefaultCookiePolicy.DomainStrict,
    blocked_domains=["ads.net", ".ads.net"])
msg81202 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-02-05 10:59
Thanks, fixed in r69293.
History
Date User Action Args
2022-04-11 14:56:44adminsetgithub: 49309
2009-02-05 10:59:38georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg81202
2009-01-25 19:45:55babocreate