[Python-checkins] bpo-41672: Fix type mismatches in imaplib docs (GH-22207) (#22218)

Miss Islington (bot) webhook-mailer at python.org
Tue Sep 15 09:57:50 EDT 2020


https://github.com/python/cpython/commit/3a150c77c31da240f1b92cab9ec74f1fa701b869
commit: 3a150c77c31da240f1b92cab9ec74f1fa701b869
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-09-12T20:04:50+09:00
summary:

bpo-41672: Fix type mismatches in imaplib docs (GH-22207) (#22218)

(cherry picked from commit c75330605d4795850ec74fdc4d69aa5d92f76c00)

Co-authored-by: Norbert Cyran <cyran.norbert97 at gmail.com>

Co-authored-by: Norbert Cyran <cyran.norbert97 at gmail.com>

files:
M Doc/library/imaplib.rst

diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst
index df63d820cfe04..b3d533728df6d 100644
--- a/Doc/library/imaplib.rst
+++ b/Doc/library/imaplib.rst
@@ -132,7 +132,7 @@ The following utility functions are defined:
 
 .. function:: Int2AP(num)
 
-   Converts an integer into a string representation using characters from the set
+   Converts an integer into a bytes representation using characters from the set
    [``A`` .. ``P``].
 
 
@@ -186,7 +186,7 @@ you want to avoid having an argument string quoted (eg: the *flags* argument to
 
 Each command returns a tuple: ``(type, [data, ...])`` where *type* is usually
 ``'OK'`` or ``'NO'``, and *data* is either the text from the command response,
-or mandated results from the command. Each *data* is either a string, or a
+or mandated results from the command. Each *data* is either a ``bytes``, or a
 tuple. If a tuple, then the first part is the header of the response, and the
 second part contains the data (ie: 'literal' value).
 



More information about the Python-checkins mailing list