From 6245cb3c015a5b9febef4d6ef30d3acfc762a79d Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Fri, 15 Apr 2016 02:14:19 +0000 Subject: =?UTF-8?q?Correct=20=E2=80=9Can=E2=80=9D=20=E2=86=92=20=E2=80=9Ca?= =?UTF-8?q?=E2=80=9D=20with=20=E2=80=9CUnicode=E2=80=9D,=20=E2=80=9Cuser?= =?UTF-8?q?=E2=80=9D,=20=E2=80=9CUTF=E2=80=9D,=20etc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This affects documentation, code comments, and a debugging messages. --- Lib/nntplib.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Lib/nntplib.py') 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. """ -- cgit v1.2.1