]> granicus.if.org Git - python/commitdiff
Merged revisions 85274 via svnmerge from
authorGeorg Brandl <georg@python.org>
Wed, 6 Oct 2010 10:41:31 +0000 (10:41 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 6 Oct 2010 10:41:31 +0000 (10:41 +0000)
svn+ssh://pythondev@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/faq/library.rst
Doc/faq/windows.rst
Doc/library/argparse.rst
Doc/library/datetime.rst
Doc/library/optparse.rst
Doc/library/wsgiref.rst

index e741c583fad4cd2b32fb9a15bae4bb111f24f8a8..c122d7205a939d1a8d3780eab2c6375919e5c2e3 100644 (file)
@@ -458,7 +458,7 @@ To rename a file, use ``os.rename(old_path, new_path)``.
 
 To truncate a file, open it using ``f = open(filename, "r+")``, 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 1336400780e782fb22eab0df08493517fa33c9cd..a1dec3a7fe7f99cc10c8ea988d521360317276fa 100644 (file)
@@ -594,7 +594,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 45eddca644f2148dfe85316b946694929c346cf4..6bd011bea3f03f5d2f961890a6040b5f0173ff37 100644 (file)
@@ -737,14 +737,14 @@ values are:
 * N (an integer).  N args from the command-line will be gathered together into a
   list.  For example::
 
-    >>> parser = argparse.ArgumentParser()
-    >>> parser.add_argument('--foo', nargs=2)
-    >>> parser.add_argument('bar', nargs=1)
-    >>> parser.parse_args('c --foo a b'.split())
-    Namespace(bar=['c'], foo=['a', 'b'])
+     >>> parser = argparse.ArgumentParser()
+     >>> parser.add_argument('--foo', nargs=2)
+     >>> parser.add_argument('bar', nargs=1)
+     >>> parser.parse_args('c --foo a b'.split())
+     Namespace(bar=['c'], foo=['a', 'b'])
 
-   Note that ``nargs=1`` produces a list of one item.  This is different from
-   the default, in which the item is produced by itself.
+  Note that ``nargs=1`` produces a list of one item.  This is different from
+  the default, in which the item is produced by itself.
 
 * ``'?'``. One arg will be consumed from the command-line if possible, and
   produced as a single item.  If no command-line arg is present, the value from
index 21a2b640f0fcc508cde3f92304219b59c315d0d3..24229bba79b27f5a7c3cac7829a570b8e394f848 100644 (file)
@@ -944,7 +944,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 :attr:`tm_isdst` is set to ``0``.
 
index 13649bccb23a7be9e55f82ef9a3ff4d554759dc0..2824a26264b56e6ff082368871e8188893b27c6b 100644 (file)
@@ -1216,7 +1216,7 @@ although with a more useful 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 517fc3849bb2dd1e079625fab23d567a5bc02fbf..31634972e4582910378de0be5337df758e481a6f 100644 (file)
@@ -712,7 +712,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 :pep:`333`)
+   # second variable is the callable object (see PEP 333).
    def hello_world_app(environ, start_response):
        status = '200 OK' # HTTP Status
        headers = [('Content-type', 'text/plain')] # HTTP Headers