summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-24 09:04:36 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-24 09:04:36 (GMT)
commitf47036c1309536c048890c265605b06daf7bdc9c (patch)
treee6df0e6a342b66183d5924c97667c14c42cb2ff7 /Doc
parent55c6cc408c56f586c4826c1d9639a5f4635c021c (diff)
downloadcpython-f47036c1309536c048890c265605b06daf7bdc9c.zip
cpython-f47036c1309536c048890c265605b06daf7bdc9c.tar.gz
cpython-f47036c1309536c048890c265605b06daf7bdc9c.tar.bz2
Removed spaces before colons and semicolons.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/faq/windows.rst2
-rw-r--r--Doc/howto/logging-cookbook.rst4
-rw-r--r--Doc/howto/urllib2.rst4
-rw-r--r--Doc/library/collections.rst2
-rw-r--r--Doc/library/ctypes.rst2
-rw-r--r--Doc/library/telnetlib.rst2
-rw-r--r--Doc/library/tkinter.rst2
-rw-r--r--Doc/library/unittest.mock.rst22
-rw-r--r--Doc/whatsnew/2.4.rst2
-rw-r--r--Doc/whatsnew/2.5.rst2
-rw-r--r--Doc/whatsnew/2.6.rst6
-rw-r--r--Doc/whatsnew/3.3.rst10
12 files changed, 30 insertions, 30 deletions
diff --git a/Doc/faq/windows.rst b/Doc/faq/windows.rst
index 651ba22..246856e 100644
--- a/Doc/faq/windows.rst
+++ b/Doc/faq/windows.rst
@@ -247,7 +247,7 @@ Embedding the Python interpreter in a Windows app can be summarized as follows:
...
Py_Initialize(); // Initialize Python.
initmyAppc(); // Initialize (import) the helper class.
- PyRun_SimpleString("import myApp") ; // Import the shadow class.
+ PyRun_SimpleString("import myApp"); // Import the shadow class.
5. There are two problems with Python's C API which will become apparent if you
use a compiler other than MSVC, the compiler used to build pythonNN.dll.
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index 3f256e1..553d30e 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -841,7 +841,7 @@ separate thread::
},
'loggers': {
'foo': {
- 'handlers' : ['foofile']
+ 'handlers': ['foofile']
}
},
'root': {
@@ -1529,7 +1529,7 @@ works::
},
'loggers': {
'foo': {
- 'handlers' : ['foofile']
+ 'handlers': ['foofile']
}
},
'root': {
diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst
index 78365c9..5a22660 100644
--- a/Doc/howto/urllib2.rst
+++ b/Doc/howto/urllib2.rst
@@ -454,7 +454,7 @@ Authentication Tutorial
When authentication is required, the server sends a header (as well as the 401
error code) requesting authentication. This specifies the authentication scheme
-and a 'realm'. The header looks like : ``WWW-Authenticate: SCHEME
+and a 'realm'. The header looks like: ``WWW-Authenticate: SCHEME
realm="REALM"``.
e.g. ::
@@ -526,7 +526,7 @@ the ``ProxyHandler``, which is part of the normal handler chain when a proxy
setting is detected. Normally that's a good thing, but there are occasions
when it may not be helpful [#]_. One way to do this is to setup our own
``ProxyHandler``, with no proxies defined. This is done using similar steps to
-setting up a `Basic Authentication`_ handler : ::
+setting up a `Basic Authentication`_ handler: ::
>>> proxy_support = urllib.request.ProxyHandler({})
>>> opener = urllib.request.build_opener(proxy_support)
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 7645f2a..0ee5a4d 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -188,7 +188,7 @@ updates keys found deeper in the chain::
return
raise KeyError(key)
- >>> d = DeepChainMap({'zebra': 'black'}, {'elephant' : 'blue'}, {'lion' : 'yellow'})
+ >>> d = DeepChainMap({'zebra': 'black'}, {'elephant': 'blue'}, {'lion': 'yellow'})
>>> d['lion'] = 'orange' # update an existing key two levels down
>>> d['snake'] = 'red' # new keys get added to the topmost dict
>>> del d['elephant'] # remove an existing key one level down
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index fccde63..ae10b71 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -218,7 +218,7 @@ more about :mod:`ctypes` data types.
Fundamental data types
^^^^^^^^^^^^^^^^^^^^^^
-:mod:`ctypes` defines a number of primitive C compatible data types :
+:mod:`ctypes` defines a number of primitive C compatible data types:
+----------------------+------------------------------------------+----------------------------+
| ctypes type | C type | Python type |
diff --git a/Doc/library/telnetlib.rst b/Doc/library/telnetlib.rst
index b0e4d1d..31e5dbb 100644
--- a/Doc/library/telnetlib.rst
+++ b/Doc/library/telnetlib.rst
@@ -205,7 +205,7 @@ Telnet Objects
.. method:: Telnet.set_option_negotiation_callback(callback)
Each time a telnet option is read on the input flow, this *callback* (if set) is
- called with the following parameters : callback(telnet socket, command
+ called with the following parameters: callback(telnet socket, command
(DO/DONT/WILL/WONT), option). No other action is done afterwards by telnetlib.
diff --git a/Doc/library/tkinter.rst b/Doc/library/tkinter.rst
index 7bdd294..eeb1f80 100644
--- a/Doc/library/tkinter.rst
+++ b/Doc/library/tkinter.rst
@@ -440,7 +440,7 @@ back will contain the name of the synonym and the "real" option (such as
Example::
>>> print(fred.config())
- {'relief' : ('relief', 'relief', 'Relief', 'raised', 'groove')}
+ {'relief': ('relief', 'relief', 'Relief', 'raised', 'groove')}
Of course, the dictionary printed will include all the options available and
their values. This is meant only as an example.
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index 0243d7f..6b9805c 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -1632,17 +1632,17 @@ Methods and their defaults:
* ``__gt__``: NotImplemented
* ``__le__``: NotImplemented
* ``__ge__``: NotImplemented
-* ``__int__`` : 1
-* ``__contains__`` : False
-* ``__len__`` : 1
-* ``__iter__`` : iter([])
-* ``__exit__`` : False
-* ``__complex__`` : 1j
-* ``__float__`` : 1.0
-* ``__bool__`` : True
-* ``__index__`` : 1
-* ``__hash__`` : default hash for the mock
-* ``__str__`` : default str for the mock
+* ``__int__``: 1
+* ``__contains__``: False
+* ``__len__``: 1
+* ``__iter__``: iter([])
+* ``__exit__``: False
+* ``__complex__``: 1j
+* ``__float__``: 1.0
+* ``__bool__``: True
+* ``__index__``: 1
+* ``__hash__``: default hash for the mock
+* ``__str__``: default str for the mock
* ``__sizeof__``: default sizeof for the mock
For example:
diff --git a/Doc/whatsnew/2.4.rst b/Doc/whatsnew/2.4.rst
index 5a28f89..5973f3b 100644
--- a/Doc/whatsnew/2.4.rst
+++ b/Doc/whatsnew/2.4.rst
@@ -846,7 +846,7 @@ Here are all of the changes that Python 2.4 makes to the core Python language.
['A', 'b', 'c', 'D']
Finally, the *reverse* parameter takes a Boolean value. If the value is true,
- the list will be sorted into reverse order. Instead of ``L.sort() ;
+ the list will be sorted into reverse order. Instead of ``L.sort();
L.reverse()``, you can now write ``L.sort(reverse=True)``.
The results of sorting are now guaranteed to be stable. This means that two
diff --git a/Doc/whatsnew/2.5.rst b/Doc/whatsnew/2.5.rst
index b91e647..683630a 100644
--- a/Doc/whatsnew/2.5.rst
+++ b/Doc/whatsnew/2.5.rst
@@ -286,7 +286,7 @@ Python's standard :mod:`string` module? There's no clean way to ignore
:mod:`pkg.string` and look for the standard module; generally you had to look at
the contents of ``sys.modules``, which is slightly unclean. Holger Krekel's
:mod:`py.std` package provides a tidier way to perform imports from the standard
-library, ``import py ; py.std.string.join()``, but that package isn't available
+library, ``import py; py.std.string.join()``, but that package isn't available
on all Python installations.
Reading code which relies on relative imports is also less clear, because a
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst
index bdd7ff7..3ae6c77 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -1891,7 +1891,7 @@ changes, or look through the Subversion logs for all the details.
>>> dq=deque(maxlen=3)
>>> dq
deque([], maxlen=3)
- >>> dq.append(1) ; dq.append(2) ; dq.append(3)
+ >>> dq.append(1); dq.append(2); dq.append(3)
>>> dq
deque([1, 2, 3], maxlen=3)
>>> dq.append(4)
@@ -2783,12 +2783,12 @@ http://www.json.org.
types. The following example encodes and decodes a dictionary::
>>> import json
- >>> data = {"spam" : "foo", "parrot" : 42}
+ >>> data = {"spam": "foo", "parrot": 42}
>>> in_json = json.dumps(data) # Encode the data
>>> in_json
'{"parrot": 42, "spam": "foo"}'
>>> json.loads(in_json) # Decode into a Python object
- {"spam" : "foo", "parrot" : 42}
+ {"spam": "foo", "parrot": 42}
It's also possible to write your own decoders and encoders to support
more types. Pretty-printing of the JSON strings is also supported.
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index b24d44a..b44a2fe 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -1823,12 +1823,12 @@ signal
* The :mod:`signal` module has new functions:
* :func:`~signal.pthread_sigmask`: fetch and/or change the signal mask of the
- calling thread (Contributed by Jean-Paul Calderone in :issue:`8407`) ;
- * :func:`~signal.pthread_kill`: send a signal to a thread ;
- * :func:`~signal.sigpending`: examine pending functions ;
- * :func:`~signal.sigwait`: wait a signal.
+ calling thread (Contributed by Jean-Paul Calderone in :issue:`8407`);
+ * :func:`~signal.pthread_kill`: send a signal to a thread;
+ * :func:`~signal.sigpending`: examine pending functions;
+ * :func:`~signal.sigwait`: wait a signal;
* :func:`~signal.sigwaitinfo`: wait for a signal, returning detailed
- information about it.
+ information about it;
* :func:`~signal.sigtimedwait`: like :func:`~signal.sigwaitinfo` but with a
timeout.