Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a19a89

Browse files
committed
merge with 3.3
2 parents dd371b9 + 3d596fa commit 3a19a89

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/howto/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ columns and can return Unicode values from an SQL query.
514514

515515
Unicode data is usually converted to a particular encoding before it gets
516516
written to disk or sent over a socket. It's possible to do all the work
517-
yourself: open a file, read an 8-bit bytes object from it, and convert the string
517+
yourself: open a file, read an 8-bit bytes object from it, and convert the bytes
518518
with ``bytes.decode(encoding)``. However, the manual approach is not recommended.
519519

520520
One problem is the multi-byte nature of encodings; one Unicode character can be

Doc/library/curses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ The module :mod:`curses` defines the following functions:
377377
is to be displayed.
378378

379379

380-
.. function:: newwin(begin_y, begin_x)
380+
.. function:: newwin(nlines, ncols)
381381
newwin(nlines, ncols, begin_y, begin_x)
382382

383383
Return a new window, whose left-upper corner is at ``(begin_y, begin_x)``, and

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ Notes:
18981898
making assumptions about the output value. Field orderings will vary (for
18991899
example, "month/day/year" versus "day/month/year"), and the output may
19001900
contain Unicode characters encoded using the locale's default encoding (for
1901-
example, if the current locale is ``js_JP``, the default encoding could be
1901+
example, if the current locale is ``ja_JP``, the default encoding could be
19021902
any one of ``eucJP``, ``SJIS``, or ``utf-8``; use :meth:`locale.getlocale`
19031903
to determine the current locale's encoding).
19041904

Doc/library/nntplib.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,18 +394,18 @@ tuples or objects that the method normally returns will be empty.
394394

395395
.. method:: NNTP.next()
396396

397-
Send a ``NEXT`` command. Return as for :meth:`stat`.
397+
Send a ``NEXT`` command. Return as for :meth:`.stat`.
398398

399399

400400
.. method:: NNTP.last()
401401

402-
Send a ``LAST`` command. Return as for :meth:`stat`.
402+
Send a ``LAST`` command. Return as for :meth:`.stat`.
403403

404404

405405
.. method:: NNTP.article(message_spec=None, *, file=None)
406406

407407
Send an ``ARTICLE`` command, where *message_spec* has the same meaning as
408-
for :meth:`stat`. Return a tuple ``(response, info)`` where *info*
408+
for :meth:`.stat`. Return a tuple ``(response, info)`` where *info*
409409
is a :class:`~collections.namedtuple` with three attributes *number*,
410410
*message_id* and *lines* (in that order). *number* is the article number
411411
in the group (or 0 if the information is not available), *message_id* the

0 commit comments

Comments
 (0)