[docs] Description of 'secure' argument for logging.handlers.SMTPHandler isn't up to date

Sandro Tosi sandro.tosi at gmail.com
Sun Jul 31 21:47:38 CEST 2011


Hi Jesaja,
for another report, I filed http://bugs.python.org/issue12667 some
hours ago, to have your same report fixed. Thanks for spotting it!

Cheers,
Sandro

On Fri, Jul 22, 2011 at 18:12, Jesaja Everling <jeverling at gmail.com> wrote:
> Hi,
>
> the docs for logging.handlers.SMTPHandler are not up to date.
>
> Docs:
> http://docs.python.org/library/logging.handlers.html#logging.handlers.SMTPHandler
>
> "If secure is True, then the handler will attempt to use TLS for the
> email transmission.".
>
>
> Docstring:
> http://hg.python.org/cpython/file/c6e63c67efd5/Lib/logging/handlers.py#l833
>
> "To specify the use of a secure protocol (TLS), pass in a tuple for
> the secure argument.
> This will only be used when authentication credentials are supplied.
> The tuple will be either an empty tuple, or a single-value tuple with
> the name of a keyfile,
> or a 2-value tuple with the names of the keyfile and certificate file.
> (This tuple is passed to the `starttls` method)."
>
> Just in case nobody noticed this before.
>
> Best Regards,
>
> Jesaja Everling
> _______________________________________________
> docs mailing list
> docs at python.org
> http://mail.python.org/mailman/listinfo/docs
>



-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list