]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Removed spaces before commas and periods.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 23 Dec 2013 16:20:51 +0000 (18:20 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 23 Dec 2013 16:20:51 +0000 (18:20 +0200)
18 files changed:
Doc/faq/library.rst
Doc/howto/pyporting.rst
Doc/howto/urllib2.rst
Doc/library/ctypes.rst
Doc/library/http.cookiejar.rst
Doc/library/itertools.rst
Doc/library/logging.rst
Doc/library/ossaudiodev.rst
Doc/library/pyexpat.rst
Doc/library/re.rst
Doc/library/stdtypes.rst
Doc/library/sys.rst
Doc/library/tkinter.rst
Doc/library/trace.rst
Doc/library/urllib.request.rst
Doc/library/xml.dom.minidom.rst
Doc/whatsnew/3.2.rst
Doc/whatsnew/3.3.rst

index c8ef9e7199d3257bd88869b43b705cfb8ecd0f91..475511013601f3387ae1ede3b015fd570f08b128 100644 (file)
@@ -658,7 +658,7 @@ and client-side web systems.
 .. XXX check if wiki page is still up to date
 
 A summary of available frameworks is maintained by Paul Boddie at
-http://wiki.python.org/moin/WebProgramming .
+http://wiki.python.org/moin/WebProgramming\ .
 
 Cameron Laird maintains a useful set of pages about Python web technologies at
 http://phaseit.net/claird/comp.lang.python/web_python.
index 9015372bde0629974f304f15b37eb19606f555d4..92207e296dc9d1bb706b6d93be2e44a3b29ca511 100644 (file)
@@ -640,7 +640,7 @@ developing under Python 2 or Python 3. Whether this approach or using
 
 To get a complete idea of what issues you will need to deal with, see the
 `What's New in Python 3.0`_. Others have reorganized the data in other formats
-such as http://docs.pythonsprints.com/python3_porting/py-porting.html .
+such as http://docs.pythonsprints.com/python3_porting/py-porting.html\ .
 
 The following are some steps to take to try to support both Python 2 & 3 from
 the same source code.
index 74eeee0f62582ae7e18dc0b8943c891a9cf48829..78365c9d87da6b1c54762a45bbf3bf7848acff1c 100644 (file)
@@ -160,7 +160,7 @@ We'll discuss here one particular HTTP header, to illustrate how to add headers
 to your HTTP request.
 
 Some websites [#]_ dislike being browsed by programs, or send different versions
-to different browsers [#]_ . By default urllib identifies itself as
+to different browsers [#]_. By default urllib identifies itself as
 ``Python-urllib/x.y`` (where ``x`` and ``y`` are the major and minor version
 numbers of the Python release,
 e.g. ``Python-urllib/2.5``), which may confuse the site, or just plain
index ccbb8ec563e5bf37217410f4f52393e0d3140e92..fccde63faa434d52404ef2bd2dc7a9428b92b595 100644 (file)
@@ -1651,7 +1651,7 @@ the windows header file is this::
 
    WINUSERAPI int WINAPI
    MessageBoxA(
-       HWND hWnd ,
+       HWND hWnd,
        LPCSTR lpText,
        LPCSTR lpCaption,
        UINT uType);
index b50cb226b780e6f7df8d35fed63d78277274390f..2fae47c62670b43a5e54aa5a6e19d6cfa62f0432 100644 (file)
@@ -309,7 +309,7 @@ FileCookieJar subclasses and co-operation with web browsers
 -----------------------------------------------------------
 
 The following :class:`CookieJar` subclasses are provided for reading and
-writing .
+writing.
 
 .. class:: MozillaCookieJar(filename, delayload=None, policy=None)
 
index 6929192b4fe008a307d2d12b9e066a74e3503d03..c0da2d109fca30a00336129d93cbebc92540b5ed 100644 (file)
@@ -56,7 +56,7 @@ chain.from_iterable     iterable                        p0, p1, ... plast, q0, q
 :func:`islice`          seq, [start,] stop [, step]     elements from seq[start:stop:step]                  ``islice('ABCDEFG', 2, None) --> C D E F G``
 :func:`starmap`         func, seq                       func(\*seq[0]), func(\*seq[1]), ...                 ``starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000``
 :func:`takewhile`       pred, seq                       seq[0], seq[1], until pred fails                    ``takewhile(lambda x: x<5, [1,4,6,4,1]) --> 1 4``
-:func:`tee`             it, n                           it1, it2 , ... itn  splits one iterator into n
+:func:`tee`             it, n                           it1, it2, ... itn  splits one iterator into n
 :func:`zip_longest`     p, q, ...                       (p[0], q[0]), (p[1], q[1]), ...                     ``zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-``
 ====================    ============================    =================================================   =============================================================
 
@@ -131,7 +131,7 @@ loops that truncate the stream.
       >>> inputs = repeat(x0, 36)     # only the initial value is used
       >>> [format(x, '.2f') for x in accumulate(inputs, logistic_map)]
       ['0.40', '0.91', '0.30', '0.81', '0.60', '0.92', '0.29', '0.79', '0.63',
-       '0.88' ,'0.39', '0.90', '0.33', '0.84', '0.52', '0.95', '0.18', '0.57',
+       '0.88''0.39', '0.90', '0.33', '0.84', '0.52', '0.95', '0.18', '0.57',
        '0.93', '0.25', '0.71', '0.79', '0.63', '0.88', '0.39', '0.91', '0.32',
        '0.83', '0.54', '0.95', '0.20', '0.60', '0.91', '0.30', '0.80', '0.60']
 
index 548428e72da20049bc3a9da4adbec1e459d6aaa8..14ccb25855a1f688321a28c2d7f58b950c56b670 100644 (file)
@@ -809,7 +809,7 @@ LoggerAdapter Objects
 ---------------------
 
 :class:`LoggerAdapter` instances are used to conveniently pass contextual
-information into logging calls. For a usage example , see the section on
+information into logging calls. For a usage example, see the section on
 :ref:`adding contextual information to your logging output <context-info>`.
 
 .. class:: LoggerAdapter(logger, extra)
index b53e80f9373506fc13285fc935cd18b56f05f140..80551aa9a65b6328dc573715acaec92d9bbe87f2 100644 (file)
@@ -49,7 +49,7 @@ the standard audio interface for Linux and recent versions of FreeBSD.
       the official documentation for the OSS C API
 
    The module defines a large number of constants supplied by the OSS device
-   driver; see ``<sys/soundcard.h>`` on either Linux or FreeBSD for a listing .
+   driver; see ``<sys/soundcard.h>`` on either Linux or FreeBSD for a listing.
 
 :mod:`ossaudiodev` defines the following variables and functions:
 
index b1543d8002b4b61692666f15e1a442399d2db2c5..3d88d85d1cc9f61699caaa8ad421d4e88a193b38 100644 (file)
@@ -861,5 +861,5 @@ The ``errors`` module has the following attributes:
 .. [#] The encoding string included in XML output should conform to the
    appropriate standards. For example, "UTF-8" is valid, but "UTF8" is
    not. See http://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl
-   and http://www.iana.org/assignments/character-sets .
+   and http://www.iana.org/assignments/character-sets\ .
 
index 762ca496bc333d7364e6ea8c22ccf87e925cb790..dd790e7efedc698c1acb756d5492f549e5da843d 100644 (file)
@@ -317,7 +317,7 @@ The special characters are:
    optional and can be omitted. For example,
    ``(<)?(\w+@\w+(?:\.\w+)+)(?(1)>|$)`` is a poor email matching pattern, which
    will match with ``'<user@host.com>'`` as well as ``'user@host.com'``, but
-   not with ``'<user@host.com'`` nor ``'user@host.com>'`` .
+   not with ``'<user@host.com'`` nor ``'user@host.com>'``.
 
 
 The special sequences consist of ``'\'`` and a character from the list below.
index f0d2f80e71777bc61f5c407ad39d2bc4130dde3e..ab78cdc85f65182547cfd7c02adb4a4f98297442 100644 (file)
@@ -1583,7 +1583,7 @@ expression support in the :mod:`re` module).
 .. method:: str.format_map(mapping)
 
    Similar to ``str.format(**mapping)``, except that ``mapping`` is
-   used directly and not copied to a :class:`dict` .  This is useful
+   used directly and not copied to a :class:`dict`.  This is useful
    if for example ``mapping`` is a dict subclass:
 
    >>> class Default(dict):
index 18d05277ff9a8effd1602ade64b88af65798de18..22be62e11eec370fcd3b01578df3f4d1e76a6629 100644 (file)
@@ -1187,5 +1187,5 @@ always available.
 
 .. rubric:: Citations
 
-.. [C99] ISO/IEC 9899:1999.  "Programming languages -- C."  A public draft of this standard is available at http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf .
+.. [C99] ISO/IEC 9899:1999.  "Programming languages -- C."  A public draft of this standard is available at http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf\ .
 
index ad37a7bd11de6bf7dff24deaaca18a28cfac106b..7bdd2948186b7ecbe5bde8d2537e8ec0c1960ec9 100644 (file)
@@ -180,7 +180,7 @@ documentation that exists. Here are some hints:
       The Tk/Tcl development is largely taking place at ActiveState.
 
    `Tcl and the Tk Toolkit <http://www.amazon.com/exec/obidos/ASIN/020163337X>`_
-      The book by John Ousterhout, the inventor of Tcl .
+      The book by John Ousterhout, the inventor of Tcl.
 
    `Practical Programming in Tcl and Tk <http://www.amazon.com/exec/obidos/ASIN/0130220280>`_
       Brent Welch's encyclopedic book.
@@ -613,7 +613,7 @@ bitmap
    preceded with an ``@``, as in ``"@/usr/contrib/bitmap/gumby.bit"``.
 
 boolean
-   You can pass integers 0 or 1 or the strings ``"yes"`` or ``"no"`` .
+   You can pass integers 0 or 1 or the strings ``"yes"`` or ``"no"``.
 
 callback
    This is any Python function that takes no arguments.  For example::
index 9b52f7d18d31b62bd33522029f39b018fc9f3bb6..1e3f5c3fc53d482b1b5ca506ee996aabae5ce9df 100644 (file)
@@ -41,7 +41,7 @@ Main options
 
 At least one of the following options must be specified when invoking
 :mod:`trace`.  The :option:`--listfuncs <-l>` option is mutually exclusive with
-the :option:`--trace <-t>` and :option:`--counts <-c>` options . When
+the :option:`--trace <-t>` and :option:`--counts <-c>` options. When
 :option:`--listfuncs <-l>` is provided, neither :option:`--counts <-c>` nor
 :option:`--trace <-t>` are accepted, and vice versa.
 
index 10aa260a2fe8f13aaa9f6768168d756941b6ae03..6493a292aadb33500cb996726e97e1e9afeea53f 100644 (file)
@@ -1072,7 +1072,7 @@ it receives from the http server. In general, a program will decode
 the returned bytes object to string once it determines or guesses
 the appropriate encoding.
 
-The following W3C document, http://www.w3.org/International/O-charset  , lists
+The following W3C document, http://www.w3.org/International/O-charset\ , lists
 the various ways in which a (X)HTML or a XML document could have specified its
 encoding information.
 
index 5d821f17d0b383029d1afc7266f1cc38bfe49ad8..89c660af03d7d3acb11511c24539ae70fa0f4985 100644 (file)
@@ -252,4 +252,4 @@ utility to most DOM users.
    "UTF8" is not valid in an XML document's declaration, even though
    Python accepts it as an encoding name.
    See http://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl
-   and http://www.iana.org/assignments/character-sets .
+   and http://www.iana.org/assignments/character-sets\ .
index 5059f48305094e3a8ff09933320e4cabe06aaef3..aa69df22752ccf17effb16899cc7608a55aa3a6c 100644 (file)
@@ -2469,7 +2469,7 @@ Code Repository
 
 In addition to the existing Subversion code repository at http://svn.python.org
 there is now a `Mercurial <http://mercurial.selenic.com/>`_ repository at
-http://hg.python.org/ .
+http://hg.python.org/\ .
 
 After the 3.2 release, there are plans to switch to Mercurial as the primary
 repository.  This distributed version control system should make it easier for
index 6e0746adbfd28a9e1018a6a0c9c1118528d6be79..b24d44a7b422013fe9c85d95cd765e21a1b95069 100644 (file)
@@ -194,7 +194,7 @@ API changes
   are still permitted, but will always compare as unequal, regardless
   of view contents.
 
-* For further changes see `Build and C API Changes`_ and `Porting C code`_ .
+* For further changes see `Build and C API Changes`_ and `Porting C code`_.
 
 (Contributed by Stefan Krah in :issue:`10181`)