Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/imaplib.rst

    r2 r391  
    1717   pair: IMAP4_stream; protocol
    1818
     19**Source code:** :source:`Lib/imaplib.py`
     20
     21--------------
     22
    1923This module defines three classes, :class:`IMAP4`, :class:`IMAP4_SSL` and
    2024:class:`IMAP4_stream`, which encapsulate a connection to an IMAP4 server and
     
    8589.. function:: Internaldate2tuple(datestr)
    8690
    87    Converts an IMAP4 INTERNALDATE string to Coordinated Universal Time. Returns a
    88    :mod:`time` module tuple.
    89 
     91   Parse an IMAP4 ``INTERNALDATE`` string and return corresponding local
     92   time.  The return value is a :class:`time.struct_time` instance or
     93   None if the string has wrong format.
    9094
    9195.. function:: Int2AP(num)
     
    102106.. function:: Time2Internaldate(date_time)
    103107
    104    Converts a :mod:`time` module tuple to an IMAP4 ``INTERNALDATE`` representation.
    105    Returns a string in the form: ``"DD-Mmm-YYYY HH:MM:SS +HHMM"`` (including
    106    double-quotes).
     108   Convert *date_time* to an IMAP4 ``INTERNALDATE`` representation.  The
     109   return value is a string in the form: ``"DD-Mmm-YYYY HH:MM:SS
     110   +HHMM"`` (including double-quotes).  The *date_time* argument can be a
     111   number (int or float) representing seconds since epoch (as returned
     112   by :func:`time.time`), a 9-tuple representing local time (as returned by
     113   :func:`time.localtime`), or a double-quoted string.  In the last case, it
     114   is assumed to already be in the correct format.
    107115
    108116Note that IMAP4 message numbers change as the mailbox changes; in particular,
     
    304312.. method:: IMAP4.open(host, port)
    305313
    306    Opens socket to *port* at *host*. The connection objects established by this
    307    method will be used in the ``read``, ``readline``, ``send``, and ``shutdown``
    308    methods. You may override this method.
     314   Opens socket to *port* at *host*.  This method is implicitly called by
     315   the :class:`IMAP4` constructor.  The connection objects established by this
     316   method will be used in the :meth:`IMAP4.read`, :meth:`IMAP4.readline`,
     317   :meth:`IMAP4.send`, and :meth:`IMAP4.shutdown` methods.  You may override
     318   this method.
    309319
    310320
     
    402412.. method:: IMAP4.shutdown()
    403413
    404    Close connection established in ``open``. You may override this method.
     414   Close connection established in ``open``.  This method is implicitly
     415   called by :meth:`IMAP4.logout`.  You may override this method.
    405416
    406417
Note: See TracChangeset for help on using the changeset viewer.