]> granicus.if.org Git - python/commitdiff
Merged revisions 85274 via svnmerge from
authorGeorg Brandl <georg@python.org>
Wed, 6 Oct 2010 10:38:58 +0000 (10:38 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 6 Oct 2010 10:38:58 +0000 (10:38 +0000)
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".
........

Doc/distutils/apiref.rst
Doc/faq/library.rst
Doc/faq/windows.rst
Doc/library/datetime.rst
Doc/library/io.rst
Doc/library/optparse.rst
Doc/library/subprocess.rst
Doc/library/wsgiref.rst
Doc/reference/executionmodel.rst
Doc/reference/expressions.rst

index 2401da3f6c26b56ae79ed54e0d99be98b19d4c90..f76f72b8f2d55418a027fb92c3284e21314ab13b 100644 (file)
@@ -1910,7 +1910,7 @@ Subclasses of :class:`Command` must define the following methods.
 
    to your setup.py, and later::
 
-      cmdclass = {'build_py':build_py}
+      cmdclass = {'build_py': build_py}
 
    to the invocation of setup().
 
index 2d35b112ba41ecee4cec2ae08f849af8400a8d19..180bd3916fa8127d1c7be46f97db38c7c732acc0 100644 (file)
@@ -460,7 +460,7 @@ To rename a file, use ``os.rename(old_path, new_path)``.
 
 To truncate a file, open it using ``f = open(filename, "rb+")``, and use
 ``f.truncate(offset)``; offset defaults to the current seek position.  There's
-also ```os.ftruncate(fd, offset)`` for files opened with :func:`os.open`, where
+also ``os.ftruncate(fd, offset)`` for files opened with :func:`os.open`, where
 ``fd`` is the file descriptor (a small integer).
 
 The :mod:`shutil` module also contains a number of functions to work on files
index 5a5b7edf2e498ac6bb3d7adde7b972499d48d5d3..8342657ced5ea6e8546a018f6d08c5317a3a3d2f 100644 (file)
@@ -593,7 +593,7 @@ Warning about CTL3D32 version from installer
 
 The Python installer issues a warning like this::
 
-   This version uses ``CTL3D32.DLL`` which is not the correct version.
+   This version uses CTL3D32.DLL which is not the correct version.
    This version is used for windows NT applications only.
 
 Tim Peters:
index 456c1a0a4b35157c6d147734c87a6b52fe59db0e..26d994663087c24c248ad83c85a1cc7b36a6c1e1 100644 (file)
@@ -925,7 +925,7 @@ Instance methods:
    d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the day number within
    the current year starting with ``1`` for January 1st. The :attr:`tm_isdst` flag
    of the result is set according to the :meth:`dst` method: :attr:`tzinfo` is
-   ``None`` or :meth:`dst`` returns ``None``, :attr:`tm_isdst` is set to ``-1``;
+   ``None`` or :meth:`dst` returns ``None``, :attr:`tm_isdst` is set to ``-1``;
    else if :meth:`dst` returns a non-zero value, :attr:`tm_isdst` is set to ``1``;
    else ``tm_isdst`` is set to ``0``.
 
index afb30a193abd902b5e2f080afa3a2ad565126c3b..f0d1cf3acfb08c779126ca4c9660e2bb2bbce2f1 100644 (file)
@@ -179,7 +179,7 @@ The :class:`BufferedIOBase` ABC deals with buffering on a raw byte stream
 :class:`BufferedReader`, and :class:`BufferedRWPair` buffer streams that are
 readable, writable, and both readable and writable.  :class:`BufferedRandom`
 provides a buffered interface to random access streams.  Another
-:class`BufferedIOBase` subclass, :class:`BytesIO`, is a stream of in-memory
+:class:`BufferedIOBase` subclass, :class:`BytesIO`, is a stream of in-memory
 bytes.
 
 The :class:`TextIOBase` ABC, another subclass of :class:`IOBase`, deals with
index 918e3ec0927f820def14783eba658bbef8a7781b..00099981aac856f57c48b41d09316cd8c409477a 100644 (file)
@@ -1206,7 +1206,7 @@ error message.
 :func:`float` and :func:`complex`, with similar error-handling.
 
 ``"choice"`` options are a subtype of ``"string"`` options.  The
-:attr:`~Option.choices`` option attribute (a sequence of strings) defines the
+:attr:`~Option.choices` option attribute (a sequence of strings) defines the
 set of allowed option arguments.  :func:`optparse.check_choice` compares
 user-supplied option arguments against this master list and raises
 :exc:`OptionValueError` if an invalid string is given.
index 0c441f8c4413bb22519265b80e3f9a590cca8ce2..7402ad57fd7d1deeeb815bccfb62468a54fbefab 100644 (file)
@@ -239,6 +239,7 @@ This module also defines four shortcut functions:
 
 
 .. function:: getstatusoutput(cmd)
+
    Return ``(status, output)`` of executing *cmd* in a shell.
 
    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:
 
 
 .. function:: getoutput(cmd)
+
    Return output (stdout and stderr) of executing *cmd* in a shell.
 
    Like :func:`getstatusoutput`, except the exit status is ignored and the return
index 4ac8df7be0c9a08024f7e61553e654cf62b28563..fda9e70e5c9921ecb68a76828dd8b90ea0997043 100644 (file)
@@ -708,7 +708,7 @@ This is a working "Hello World" WSGI application::
    # use a function (note that you're not limited to a function, you can
    # use a class for example). The first argument passed to the function
    # is a dictionary containing CGI-style envrironment variables and the
-   # second variable is the callable object (see PEP333)
+   # second variable is the callable object (see PEP 333).
    def hello_world_app(environ, start_response):
        status = b'200 OK' # HTTP Status
        headers = [(b'Content-type', b'text/plain; charset=utf-8')] # HTTP Headers
index b4c29b1b7fbef7803be061ce15146e09d6426a52..861163ed041910e733038600a310ff501d9404e1 100644 (file)
@@ -87,7 +87,7 @@ The following constructs bind names: formal parameters to functions,
 :keyword:`import` statements, class and function definitions (these bind the
 class or function name in the defining block), and targets that are identifiers
 if occurring in an assignment, :keyword:`for` loop header, or after
-:keyword:`as` in a :keyword:`with` statement or :keyword.`except` clause.
+:keyword:`as` in a :keyword:`with` statement or :keyword:`except` clause.
 The :keyword:`import` statement
 of the form ``from ... import *`` binds all names defined in the imported
 module, except those beginning with an underscore.  This form may only be used
index 7baad6b7c9ba10786edc4dd264afe271b0b740d9..27bcfab8b934a7272a0a8471e98c9a21aa89311f 100644 (file)
@@ -1058,7 +1058,7 @@ and therefore not exactly equal to ``Decimal('1.1')`` which is.  When
 cross-type comparison is not supported, the comparison method returns
 ``NotImplemented``.  This can create the illusion of non-transitivity between
 supported cross-type comparisons and unsupported comparisons.  For example,
-``Decimal(2) == 2`` and `2 == float(2)`` but ``Decimal(2) != float(2)``.
+``Decimal(2) == 2`` and ``2 == float(2)`` but ``Decimal(2) != float(2)``.
 
 .. _membership-test-details: