Mailing List Archive

[issue5059] Policy.DomainStrict in cookielib example code
New submission from Attila Babo <attila.babo@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@bugs.python.org>
<http://bugs.python.org/issue5059>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5059] Policy.DomainStrict in cookielib example code [ In reply to ]
Georg Brandl <georg@python.org> added the comment:

Thanks, fixed in r69293.

----------
resolution: -> fixed
status: open -> closed

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5059>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com