]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41672: Fix type mismatches in imaplib docs (GH-22207)
authorNorbert Cyran <cyran.norbert97@gmail.com>
Sat, 12 Sep 2020 07:58:56 +0000 (09:58 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Sep 2020 07:58:56 +0000 (16:58 +0900)
Doc/library/imaplib.rst

index 7c5b07501615989409aab91a1a5387d1b27c306d..02ecfd95d43767f7e6ebd05b99bf2d0e139101ad 100644 (file)
@@ -143,7 +143,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``].
 
 
@@ -197,7 +197,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).