summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library')
-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
5 files changed, 15 insertions, 15 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 80c6c76..9948355 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -193,7 +193,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 f8eeb8e..b8f6607 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 135abeb..b5cf7b5 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -1652,17 +1652,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: