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

Skip to content

Commit ff2ad0e

Browse files
committed
Merged revisions 71814-71817,71901-71903 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r71814 | georg.brandl | 2009-04-23 10:44:57 +0200 (Do, 23 Apr 2009) | 1 line #5820: fix bug in usage of getreader(). ........ r71815 | georg.brandl | 2009-04-23 10:49:39 +0200 (Do, 23 Apr 2009) | 1 line Fix rewrapping accident. ........ r71816 | georg.brandl | 2009-04-23 10:49:56 +0200 (Do, 23 Apr 2009) | 1 line #5813: add a reference to the "future statements" section. ........ r71817 | georg.brandl | 2009-04-23 10:52:03 +0200 (Do, 23 Apr 2009) | 1 line Add link to PEP 236. ........ r71901 | georg.brandl | 2009-04-25 16:50:25 +0200 (Sa, 25 Apr 2009) | 1 line #3320: fix spelling. ........ r71902 | georg.brandl | 2009-04-25 16:51:31 +0200 (Sa, 25 Apr 2009) | 1 line #5834: use "failure" instead of "error" because the two have different meanings in unittest context. ........ r71903 | georg.brandl | 2009-04-25 17:05:04 +0200 (Sa, 25 Apr 2009) | 1 line #5821: add some capabilities of TarFile's file-like object. ........
1 parent 3afd460 commit ff2ad0e

7 files changed

Lines changed: 18 additions & 8 deletions

File tree

Doc/includes/mp_distributing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_logger():
3838
return _logger
3939

4040
_logger = logging.getLogger('distributing')
41-
_logger.propogate = 0
41+
_logger.propagate = 0
4242

4343
_formatter = logging.Formatter(util.DEFAULT_LOGGING_FORMAT)
4444
_handler = logging.StreamHandler()

Doc/library/__future__.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,7 @@ attribute on :class:`_Feature` instances.
5858

5959
No feature description will ever be deleted from :mod:`__future__`.
6060

61+
.. seealso::
62+
63+
:ref:`future`
64+
How the compiler treats future imports.

Doc/library/json.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Basic Usage
173173
If the contents of *fp* are encoded with an ASCII based encoding other than
174174
UTF-8 (e.g. latin-1), then an appropriate *encoding* name must be specified.
175175
Encodings that are not ASCII based (such as UCS-2) are not allowed, and
176-
should be wrapped with ``codecs.getreader(fp)(encoding)``, or simply decoded
176+
should be wrapped with ``codecs.getreader(encoding)(fp)``, or simply decoded
177177
to a :class:`unicode` object and passed to :func:`loads`.
178178

179179
*object_hook* is an optional function that will be called with the result of

Doc/library/tarfile.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,9 @@ object, see :ref:`tarinfo-objects` for details.
352352

353353
.. note::
354354

355-
The file-like object is read-only and provides the following methods:
356-
:meth:`read`, :meth:`readline`, :meth:`readlines`, :meth:`seek`, :meth:`tell`.
355+
The file-like object is read-only. It provides the methods
356+
:meth:`read`, :meth:`readline`, :meth:`readlines`, :meth:`seek`, :meth:`tell`,
357+
and :meth:`close`, and also supports iteration over its lines.
357358

358359

359360
.. method:: TarFile.add(name, arcname=None, recursive=True, exclude=None)

Doc/library/turtle.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,9 +1220,9 @@ Window control
12201220

12211221
.. function:: screensize(canvwidth=None, canvheight=None, bg=None)
12221222

1223-
:param canvwidth: positive integer, new width of canvas in pixels :param
1224-
canvheight: positive integer, new height of canvas in pixels :param bg:
1225-
colorstring or color-tuple, new background color
1223+
:param canvwidth: positive integer, new width of canvas in pixels
1224+
:param canvheight: positive integer, new height of canvas in pixels
1225+
:param bg: colorstring or color-tuple, new background color
12261226

12271227
If no arguments are given, return current (canvaswidth, canvasheight). Else
12281228
resize the canvas the turtles are drawing on. Do not alter the drawing

Doc/library/unittest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ Test cases
608608
assert_(expr[, msg])
609609
failUnless(expr[, msg])
610610

611-
Signal a test failure if *expr* is false; the explanation for the error
611+
Signal a test failure if *expr* is false; the explanation for the failure
612612
will be *msg* if given, otherwise it will be :const:`None`.
613613

614614
.. deprecated:: 3.1

Doc/reference/simple_stmts.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,11 @@ for the rest of the interpreter session. If an interpreter is started with the
897897
a future statement, it will be in effect in the interactive session started
898898
after the script is executed.
899899

900+
.. seealso::
901+
902+
:pep:`236` - Back to the __future__
903+
The original proposal for the __future__ mechanism.
904+
900905

901906
.. _global:
902907

0 commit comments

Comments
 (0)