[Python-checkins] r85279 - in python/branches/release31-maint: 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

georg.brandl python-checkins at python.org
Wed Oct 6 12:38:58 CEST 2010


Author: georg.brandl
Date: Wed Oct  6 12:38:58 2010
New Revision: 85279

Log:
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".
........


Modified:
   python/branches/release31-maint/   (props changed)
   python/branches/release31-maint/Doc/distutils/apiref.rst
   python/branches/release31-maint/Doc/faq/library.rst
   python/branches/release31-maint/Doc/faq/windows.rst
   python/branches/release31-maint/Doc/library/datetime.rst
   python/branches/release31-maint/Doc/library/io.rst
   python/branches/release31-maint/Doc/library/optparse.rst
   python/branches/release31-maint/Doc/library/subprocess.rst
   python/branches/release31-maint/Doc/library/wsgiref.rst
   python/branches/release31-maint/Doc/reference/executionmodel.rst
   python/branches/release31-maint/Doc/reference/expressions.rst

Modified: python/branches/release31-maint/Doc/distutils/apiref.rst
==============================================================================
--- python/branches/release31-maint/Doc/distutils/apiref.rst	(original)
+++ python/branches/release31-maint/Doc/distutils/apiref.rst	Wed Oct  6 12:38:58 2010
@@ -1910,7 +1910,7 @@
 
    to your setup.py, and later::
 
-      cmdclass = {'build_py':build_py}
+      cmdclass = {'build_py': build_py}
 
    to the invocation of setup().
 

Modified: python/branches/release31-maint/Doc/faq/library.rst
==============================================================================
--- python/branches/release31-maint/Doc/faq/library.rst	(original)
+++ python/branches/release31-maint/Doc/faq/library.rst	Wed Oct  6 12:38:58 2010
@@ -460,7 +460,7 @@
 
 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

Modified: python/branches/release31-maint/Doc/faq/windows.rst
==============================================================================
--- python/branches/release31-maint/Doc/faq/windows.rst	(original)
+++ python/branches/release31-maint/Doc/faq/windows.rst	Wed Oct  6 12:38:58 2010
@@ -593,7 +593,7 @@
 
 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:

Modified: python/branches/release31-maint/Doc/library/datetime.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/datetime.rst	(original)
+++ python/branches/release31-maint/Doc/library/datetime.rst	Wed Oct  6 12:38:58 2010
@@ -925,7 +925,7 @@
    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``.
 

Modified: python/branches/release31-maint/Doc/library/io.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/io.rst	(original)
+++ python/branches/release31-maint/Doc/library/io.rst	Wed Oct  6 12:38:58 2010
@@ -179,7 +179,7 @@
 :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

Modified: python/branches/release31-maint/Doc/library/optparse.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/optparse.rst	(original)
+++ python/branches/release31-maint/Doc/library/optparse.rst	Wed Oct  6 12:38:58 2010
@@ -1206,7 +1206,7 @@
 :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.

Modified: python/branches/release31-maint/Doc/library/subprocess.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/subprocess.rst	(original)
+++ python/branches/release31-maint/Doc/library/subprocess.rst	Wed Oct  6 12:38:58 2010
@@ -239,6 +239,7 @@
 
 
 .. 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 @@
 
 
 .. 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

Modified: python/branches/release31-maint/Doc/library/wsgiref.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/wsgiref.rst	(original)
+++ python/branches/release31-maint/Doc/library/wsgiref.rst	Wed Oct  6 12:38:58 2010
@@ -708,7 +708,7 @@
    # 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

Modified: python/branches/release31-maint/Doc/reference/executionmodel.rst
==============================================================================
--- python/branches/release31-maint/Doc/reference/executionmodel.rst	(original)
+++ python/branches/release31-maint/Doc/reference/executionmodel.rst	Wed Oct  6 12:38:58 2010
@@ -87,7 +87,7 @@
 :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

Modified: python/branches/release31-maint/Doc/reference/expressions.rst
==============================================================================
--- python/branches/release31-maint/Doc/reference/expressions.rst	(original)
+++ python/branches/release31-maint/Doc/reference/expressions.rst	Wed Oct  6 12:38:58 2010
@@ -1058,7 +1058,7 @@
 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:
 


More information about the Python-checkins mailing list