From 610f84af0d810f4d43336ca4f8408d60655d5bf2 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 23 Dec 2013 18:19:34 +0200 Subject: Removed spaces before commas and periods. --- Doc/faq/library.rst | 2 +- Doc/howto/descriptor.rst | 2 +- Doc/howto/pyporting.rst | 2 +- Doc/howto/urllib2.rst | 2 +- Doc/library/bdb.rst | 2 +- Doc/library/bsddb.rst | 2 +- Doc/library/cookielib.rst | 2 +- Doc/library/ctypes.rst | 2 +- Doc/library/itertools.rst | 2 +- Doc/library/logging.rst | 2 +- Doc/library/ossaudiodev.rst | 2 +- Doc/library/pyexpat.rst | 2 +- Doc/library/sys.rst | 2 +- Doc/library/tkinter.rst | 4 ++-- Doc/library/trace.rst | 2 +- Doc/library/xml.dom.minidom.rst | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Doc/faq/library.rst b/Doc/faq/library.rst index 295ff3b..0d80f76 100644 --- a/Doc/faq/library.rst +++ b/Doc/faq/library.rst @@ -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. diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 7828188..2a323c7 100644 --- a/Doc/howto/descriptor.rst +++ b/Doc/howto/descriptor.rst @@ -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): diff --git a/Doc/howto/pyporting.rst b/Doc/howto/pyporting.rst index 3eca496..8fee5ad 100644 --- a/Doc/howto/pyporting.rst +++ b/Doc/howto/pyporting.rst @@ -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. diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst index f84bf08..e32c560 100644 --- a/Doc/howto/urllib2.rst +++ b/Doc/howto/urllib2.rst @@ -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 diff --git a/Doc/library/bdb.rst b/Doc/library/bdb.rst index c3e1ed2..82ef37e 100644 --- a/Doc/library/bdb.rst +++ b/Doc/library/bdb.rst @@ -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. diff --git a/Doc/library/bsddb.rst b/Doc/library/bsddb.rst index 74bcc0f..7551f10 100644 --- a/Doc/library/bsddb.rst +++ b/Doc/library/bsddb.rst @@ -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 diff --git a/Doc/library/cookielib.rst b/Doc/library/cookielib.rst index 8029dec..b1baef1 100644 --- a/Doc/library/cookielib.rst +++ b/Doc/library/cookielib.rst @@ -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) diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index c87f862..e09c53e 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -1714,7 +1714,7 @@ the windows header file is this:: WINUSERAPI int WINAPI MessageBoxA( - HWND hWnd , + HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType); diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 60b04b0..ea279b0 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -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-`` diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index e8189c2..45d06d4 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -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 `. .. versionadded:: 2.6 diff --git a/Doc/library/ossaudiodev.rst b/Doc/library/ossaudiodev.rst index 1a9f2f5..79c5ea5 100644 --- a/Doc/library/ossaudiodev.rst +++ b/Doc/library/ossaudiodev.rst @@ -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 ```` on either Linux or FreeBSD for a listing . + driver; see ```` on either Linux or FreeBSD for a listing. :mod:`ossaudiodev` defines the following variables and functions: diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst index c9136a8..5ce4c02 100644 --- a/Doc/library/pyexpat.rst +++ b/Doc/library/pyexpat.rst @@ -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\ . diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 6f8b8bb..48d2b5b 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -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\ . diff --git a/Doc/library/tkinter.rst b/Doc/library/tkinter.rst index cf8eba0..3d40c77 100644 --- a/Doc/library/tkinter.rst +++ b/Doc/library/tkinter.rst @@ -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 `_ - The book by John Ousterhout, the inventor of Tcl . + The book by John Ousterhout, the inventor of Tcl. `Practical Programming in Tcl and Tk `_ 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:: diff --git a/Doc/library/trace.rst b/Doc/library/trace.rst index 29cb3e1..edd4f22 100644 --- a/Doc/library/trace.rst +++ b/Doc/library/trace.rst @@ -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. diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst index d4e363a..1ff7024 100644 --- a/Doc/library/xml.dom.minidom.rst +++ b/Doc/library/xml.dom.minidom.rst @@ -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\ . -- cgit v0.12