]> granicus.if.org Git - python/commitdiff
Removed spaces before commas and periods.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 23 Dec 2013 16:19:34 +0000 (18:19 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 23 Dec 2013 16:19:34 +0000 (18:19 +0200)
16 files changed:
Doc/faq/library.rst
Doc/howto/descriptor.rst
Doc/howto/pyporting.rst
Doc/howto/urllib2.rst
Doc/library/bdb.rst
Doc/library/bsddb.rst
Doc/library/cookielib.rst
Doc/library/ctypes.rst
Doc/library/itertools.rst
Doc/library/logging.rst
Doc/library/ossaudiodev.rst
Doc/library/pyexpat.rst
Doc/library/sys.rst
Doc/library/tkinter.rst
Doc/library/trace.rst
Doc/library/xml.dom.minidom.rst

index 295ff3bf7949ab7b5b6eed8558b08aeffbc5be70..0d80f7620ba75af3f8de13bcc6571af26a2d236c 100644 (file)
@@ -640,7 +640,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 7828188780c53db2a3a7a9663d491be03893dbab..2a323c74ff1ca75921997868715a4169abb64631 100644 (file)
@@ -167,7 +167,7 @@ descriptor is useful for monitoring just a few chosen attributes::
             return self.val
 
         def __set__(self, obj, val):
-            print 'Updating' , self.name
+            print 'Updating', self.name
             self.val = val
 
     >>> class MyClass(object):
index 3eca49685d5039e76c4e0ff2e1da92c5bfb09d85..8fee5adf9c0a6262850146d0b73703dbcf812883 100644 (file)
@@ -598,7 +598,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 f84bf0810f69ce51d2bc75de05cd2fcbb2a1623d..e32c560e978eb98f67751221909a9bd615a80957 100644 (file)
@@ -150,7 +150,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 urllib2 identifies itself as
+to different browsers [#]_. By default urllib2 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 c3e1ed2ff34f9a3d572df8fe7c69600fc129b285..82ef37e5670263ab85f3362da2456a8228f8a08e 100644 (file)
@@ -20,7 +20,7 @@ The following exception is defined:
 
 The :mod:`bdb` module also defines two classes:
 
-.. class:: Breakpoint(self, file, line, temporary=0, cond=None , funcname=None)
+.. class:: Breakpoint(self, file, line, temporary=0, cond=None, funcname=None)
 
    This class implements temporary breakpoints, ignore counts, disabling and
    (re-)enabling, and conditionals.
index 74bcc0f43413a2c63b7f249b3cef33100bee5521..7551f1042f5487f9f58bc64f3d69412255d320fe 100644 (file)
@@ -52,7 +52,7 @@ arguments should be used in most instances.
    Open the hash format file named *filename*.  Files never intended to be
    preserved on disk may be created by passing ``None`` as the  *filename*.  The
    optional *flag* identifies the mode used to open the file.  It may be ``'r'``
-   (read only), ``'w'`` (read-write) , ``'c'`` (read-write - create if necessary;
+   (read only), ``'w'`` (read-write), ``'c'`` (read-write - create if necessary;
    the default) or ``'n'`` (read-write - truncate to zero length).  The other
    arguments are rarely used and are just passed to the low-level :c:func:`dbopen`
    function.  Consult the Berkeley DB documentation for their use and
index 8029dec1aa94062914976ea4556fc375a7f41b25..b1baef15a25e8278529d7f53d234540f6b677211 100644 (file)
@@ -308,7 +308,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 c87f862e3c4a8fd6e2dee7baa7bed93d24f0acfc..e09c53eb2a2fce99d7875ecaf3ab02be7932fdc7 100644 (file)
@@ -1714,7 +1714,7 @@ the windows header file is this::
 
    WINUSERAPI int WINAPI
    MessageBoxA(
-       HWND hWnd ,
+       HWND hWnd,
        LPCSTR lpText,
        LPCSTR lpCaption,
        UINT uType);
index 60b04b0522bc4a4e434ca882fbbc22d9e4fc27ec..ea279b01252928109e5863011825e2fa1c4adabf 100644 (file)
@@ -57,7 +57,7 @@ Iterator                Arguments                       Results
 :func:`islice`          seq, [start,] stop [, step]     elements from seq[start:stop:step]                  ``islice('ABCDEFG', 2, None) --> C D E F G``
 :func:`imap`            func, p, q, ...                 func(p0, q0), func(p1, q1), ...                     ``imap(pow, (2,3,10), (5,2,3)) --> 32 9 1000``
 :func:`starmap`         func, seq                       func(\*seq[0]), func(\*seq[1]), ...                 ``starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000``
-: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:`takewhile`       pred, seq                       seq[0], seq[1], until pred fails                    ``takewhile(lambda x: x<5, [1,4,6,4,1]) --> 1 4``
 :func:`izip`            p, q, ...                       (p[0], q[0]), (p[1], q[1]), ...                     ``izip('ABCD', 'xy') --> Ax By``
 :func:`izip_longest`    p, q, ...                       (p[0], q[0]), (p[1], q[1]), ...                     ``izip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-``
index e8189c2ecef3e546efdbab9d16a97f4449cb455f..45d06d428c9754ccf308f0b1fcfb662a4c453a42 100644 (file)
@@ -691,7 +691,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>`.
 
 .. versionadded:: 2.6
index 1a9f2f51f7a3830ee932c91bf6281b1650b2cc89..79c5ea575cc35de47e3c14ca5baad0f7936b2bbc 100644 (file)
@@ -48,7 +48,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 c9136a80202e595a54710d883647425bf0201faa..5ce4c0252fdf8692e06906bacfe0a030f50340dd 100644 (file)
@@ -906,5 +906,5 @@ The ``errors`` object 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 6f8b8bb3a9cd47cd47396a348b1426861bb46832..48d2b5b2d086a213a2df5764d254746c7b747430 100644 (file)
@@ -1077,5 +1077,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 cf8eba06c27a5e6831fc0178501c6e870641045d..3d40c7746e63856d1ca28e209229dfeda5c66d9d 100644 (file)
@@ -188,7 +188,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.
@@ -625,7 +625,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 29cb3e14935b6699c5cf17f18b691451c1321189..edd4f2210706d735b954043e6337d14c4a672764 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 d4e363ac0204f0693cee5b4c613c53d31ece0f98..1ff70249bb9fc5aa05f5dcfd2bf7ee85ee5cdcef 100644 (file)
@@ -276,4 +276,4 @@ utility to most DOM users.
 .. [#] 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\ .