[New-bugs-announce] [issue5059] Policy.DomainStrict in cookielib example code

Attila Babo report at bugs.python.org
Sun Jan 25 20:45:56 CET 2009


New submission from Attila Babo <attila.babo at gmail.com>:

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"])

----------
assignee: georg.brandl
components: Documentation
messages: 80535
nosy: babo, georg.brandl
severity: normal
status: open
title: Policy.DomainStrict in cookielib example code
type: compile error
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5059>
_______________________________________


More information about the New-bugs-announce mailing list