diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-04-15 02:27:11 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-04-15 02:27:11 +0000 |
commit | cda80940ed444d01beed797dcd86c207f11104bc (patch) | |
tree | 7beaa1c4db9c2e8351a9cf8ddda6a656900d4275 /Lib/nntplib.py | |
parent | 8ca020e1cc2590472ba83611727ae20d9f34bfe5 (diff) | |
parent | 20d325574eaa4f2a88036eac81e8d3cf9135372f (diff) | |
download | cpython-git-cda80940ed444d01beed797dcd86c207f11104bc.tar.gz |
Issue #15984: Merge PyUnicode doc from 3.5
Diffstat (limited to 'Lib/nntplib.py')
-rw-r--r-- | Lib/nntplib.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/nntplib.py b/Lib/nntplib.py index a75faade14..28cd0992dd 100644 --- a/Lib/nntplib.py +++ b/Lib/nntplib.py @@ -165,7 +165,7 @@ ArticleInfo = collections.namedtuple('ArticleInfo', # Helper function(s) def decode_header(header_str): - """Takes an unicode string representing a munged header value + """Takes a unicode string representing a munged header value and decodes it as a (possibly non-ASCII) readable value.""" parts = [] for v, enc in _email_decode_header(header_str): @@ -420,7 +420,7 @@ class _NNTPBase: def _putcmd(self, line): """Internal: send one command to the server (through _putline()). - The `line` must be an unicode string.""" + The `line` must be a unicode string.""" if self.debugging: print('*cmd*', repr(line)) line = line.encode(self.encoding, self.errors) self._putline(line) @@ -445,7 +445,7 @@ class _NNTPBase: def _getresp(self): """Internal: get a response from the server. Raise various errors if the response indicates an error. - Returns an unicode string.""" + Returns a unicode string.""" resp = self._getline() if self.debugging: print('*resp*', repr(resp)) resp = resp.decode(self.encoding, self.errors) @@ -462,7 +462,7 @@ class _NNTPBase: """Internal: get a response plus following text from the server. Raise various errors if the response indicates an error. - Returns a (response, lines) tuple where `response` is an unicode + Returns a (response, lines) tuple where `response` is a unicode string and `lines` is a list of bytes objects. If `file` is a file-like object, it must be open in binary mode. """ |