]> granicus.if.org Git - python/commitdiff
Updated handler documentation.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 26 Mar 2012 16:17:39 +0000 (17:17 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 26 Mar 2012 16:17:39 +0000 (17:17 +0100)
1  2 
Doc/library/logging.handlers.rst

index 51e476b060e4063a5f7fad873f9e6e81fb694f69,ef65cfa559454f91cd3058ce2faec40989ea186d..537b8c7b5679936156d7e3df65e789eec81f5889
@@@ -704,7 -614,7 +704,7 @@@ The :class:`SMTPHandler` class, locate
  supports sending logging messages to an email address via SMTP.
  
  
--.. class:: SMTPHandler(mailhost, fromaddr, toaddrs, subject, credentials=None, secure=None)
++.. class:: SMTPHandler(mailhost, fromaddr, toaddrs, subject, credentials=None, secure=None, timeout=1.0)
  
     Returns a new instance of the :class:`SMTPHandler` class. The instance is
     initialized with the from and to addresses and subject line of the email. The
     and certificate file. (This tuple is passed to the
     :meth:`smtplib.SMTP.starttls` method.)
  
++   A timeout can be specified for communication with the SMTP server using the
++   *timeout* argument.
++
++   .. versionadded:: 3.3
++      The *timeout* argument was added.
++
     .. method:: emit(record)
  
        Formats the record and sends it to the specified addressees.