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

Skip to content

Commit d098c3d

Browse files
committed
Merged revisions 85274 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r85274 | georg.brandl | 2010-10-06 12:26:05 +0200 (Mi, 06 Okt 2010) | 1 line Fix errors found by "make suspicious". ........
1 parent c755e90 commit d098c3d

10 files changed

Lines changed: 11 additions & 9 deletions

File tree

Doc/distutils/apiref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1910,7 +1910,7 @@ Subclasses of :class:`Command` must define the following methods.
19101910

19111911
to your setup.py, and later::
19121912

1913-
cmdclass = {'build_py':build_py}
1913+
cmdclass = {'build_py': build_py}
19141914

19151915
to the invocation of setup().
19161916

Doc/faq/library.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ To rename a file, use ``os.rename(old_path, new_path)``.
460460

461461
To truncate a file, open it using ``f = open(filename, "rb+")``, and use
462462
``f.truncate(offset)``; offset defaults to the current seek position. There's
463-
also ```os.ftruncate(fd, offset)`` for files opened with :func:`os.open`, where
463+
also ``os.ftruncate(fd, offset)`` for files opened with :func:`os.open`, where
464464
``fd`` is the file descriptor (a small integer).
465465

466466
The :mod:`shutil` module also contains a number of functions to work on files

Doc/faq/windows.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ Warning about CTL3D32 version from installer
593593

594594
The Python installer issues a warning like this::
595595

596-
This version uses ``CTL3D32.DLL`` which is not the correct version.
596+
This version uses CTL3D32.DLL which is not the correct version.
597597
This version is used for windows NT applications only.
598598

599599
Tim Peters:

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ Instance methods:
925925
d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the day number within
926926
the current year starting with ``1`` for January 1st. The :attr:`tm_isdst` flag
927927
of the result is set according to the :meth:`dst` method: :attr:`tzinfo` is
928-
``None`` or :meth:`dst`` returns ``None``, :attr:`tm_isdst` is set to ``-1``;
928+
``None`` or :meth:`dst` returns ``None``, :attr:`tm_isdst` is set to ``-1``;
929929
else if :meth:`dst` returns a non-zero value, :attr:`tm_isdst` is set to ``1``;
930930
else ``tm_isdst`` is set to ``0``.
931931

Doc/library/io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ The :class:`BufferedIOBase` ABC deals with buffering on a raw byte stream
179179
:class:`BufferedReader`, and :class:`BufferedRWPair` buffer streams that are
180180
readable, writable, and both readable and writable. :class:`BufferedRandom`
181181
provides a buffered interface to random access streams. Another
182-
:class`BufferedIOBase` subclass, :class:`BytesIO`, is a stream of in-memory
182+
:class:`BufferedIOBase` subclass, :class:`BytesIO`, is a stream of in-memory
183183
bytes.
184184

185185
The :class:`TextIOBase` ABC, another subclass of :class:`IOBase`, deals with

Doc/library/optparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ error message.
12061206
:func:`float` and :func:`complex`, with similar error-handling.
12071207

12081208
``"choice"`` options are a subtype of ``"string"`` options. The
1209-
:attr:`~Option.choices`` option attribute (a sequence of strings) defines the
1209+
:attr:`~Option.choices` option attribute (a sequence of strings) defines the
12101210
set of allowed option arguments. :func:`optparse.check_choice` compares
12111211
user-supplied option arguments against this master list and raises
12121212
:exc:`OptionValueError` if an invalid string is given.

Doc/library/subprocess.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ This module also defines four shortcut functions:
239239

240240

241241
.. function:: getstatusoutput(cmd)
242+
242243
Return ``(status, output)`` of executing *cmd* in a shell.
243244

244245
Execute the string *cmd* in a shell with :func:`os.popen` and return a 2-tuple
@@ -258,6 +259,7 @@ This module also defines four shortcut functions:
258259

259260

260261
.. function:: getoutput(cmd)
262+
261263
Return output (stdout and stderr) of executing *cmd* in a shell.
262264

263265
Like :func:`getstatusoutput`, except the exit status is ignored and the return

Doc/library/wsgiref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ This is a working "Hello World" WSGI application::
708708
# use a function (note that you're not limited to a function, you can
709709
# use a class for example). The first argument passed to the function
710710
# is a dictionary containing CGI-style envrironment variables and the
711-
# second variable is the callable object (see PEP333)
711+
# second variable is the callable object (see PEP 333).
712712
def hello_world_app(environ, start_response):
713713
status = b'200 OK' # HTTP Status
714714
headers = [(b'Content-type', b'text/plain; charset=utf-8')] # HTTP Headers

Doc/reference/executionmodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The following constructs bind names: formal parameters to functions,
8787
:keyword:`import` statements, class and function definitions (these bind the
8888
class or function name in the defining block), and targets that are identifiers
8989
if occurring in an assignment, :keyword:`for` loop header, or after
90-
:keyword:`as` in a :keyword:`with` statement or :keyword.`except` clause.
90+
:keyword:`as` in a :keyword:`with` statement or :keyword:`except` clause.
9191
The :keyword:`import` statement
9292
of the form ``from ... import *`` binds all names defined in the imported
9393
module, except those beginning with an underscore. This form may only be used

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ and therefore not exactly equal to ``Decimal('1.1')`` which is. When
10581058
cross-type comparison is not supported, the comparison method returns
10591059
``NotImplemented``. This can create the illusion of non-transitivity between
10601060
supported cross-type comparisons and unsupported comparisons. For example,
1061-
``Decimal(2) == 2`` and `2 == float(2)`` but ``Decimal(2) != float(2)``.
1061+
``Decimal(2) == 2`` and ``2 == float(2)`` but ``Decimal(2) != float(2)``.
10621062

10631063
.. _membership-test-details:
10641064

0 commit comments

Comments
 (0)