mirror of
https://github.com/python/cpython
synced 2026-09-29 09:55:31 +03:00
SF #1297059, doc incorrect return type for search() method. (There is a description of returned values at the top, so just remove the sentance and correct an example.)
This commit is contained in:
parent
5a13e91f72
commit
02cfa0bae5
1 changed files with 3 additions and 4 deletions
|
|
@ -327,8 +327,7 @@ data = authobject(response)
|
|||
\end{methoddesc}
|
||||
|
||||
\begin{methoddesc}{search}{charset, criterion\optional{, ...}}
|
||||
Search mailbox for matching messages. Returned data contains a space
|
||||
separated list of matching message numbers. \var{charset} may be
|
||||
Search mailbox for matching messages. \var{charset} may be
|
||||
\code{None}, in which case no \samp{CHARSET} will be specified in the
|
||||
request to the server. The IMAP protocol requires that at least one
|
||||
criterion be specified; an exception will be raised when the server
|
||||
|
|
@ -338,10 +337,10 @@ data = authobject(response)
|
|||
|
||||
\begin{verbatim}
|
||||
# M is a connected IMAP4 instance...
|
||||
msgnums = M.search(None, 'FROM', '"LDJ"')
|
||||
typ, msgnums = M.search(None, 'FROM', '"LDJ"')
|
||||
|
||||
# or:
|
||||
msgnums = M.search(None, '(FROM "LDJ")')
|
||||
typ, msgnums = M.search(None, '(FROM "LDJ")')
|
||||
\end{verbatim}
|
||||
\end{methoddesc}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue