Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89e84e7

Browse files
Removed spaces before colons and semicolons.
2 parents 7ceb378 + f47036c commit 89e84e7

12 files changed

Lines changed: 30 additions & 30 deletions

File tree

Doc/faq/windows.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Embedding the Python interpreter in a Windows app can be summarized as follows:
247247
...
248248
Py_Initialize(); // Initialize Python.
249249
initmyAppc(); // Initialize (import) the helper class.
250-
PyRun_SimpleString("import myApp") ; // Import the shadow class.
250+
PyRun_SimpleString("import myApp"); // Import the shadow class.
251251
252252
5. There are two problems with Python's C API which will become apparent if you
253253
use a compiler other than MSVC, the compiler used to build pythonNN.dll.

Doc/howto/logging-cookbook.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ separate thread::
839839
},
840840
'loggers': {
841841
'foo': {
842-
'handlers' : ['foofile']
842+
'handlers': ['foofile']
843843
}
844844
},
845845
'root': {
@@ -1527,7 +1527,7 @@ works::
15271527
},
15281528
'loggers': {
15291529
'foo': {
1530-
'handlers' : ['foofile']
1530+
'handlers': ['foofile']
15311531
}
15321532
},
15331533
'root': {

Doc/howto/urllib2.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ Authentication Tutorial
454454

455455
When authentication is required, the server sends a header (as well as the 401
456456
error code) requesting authentication. This specifies the authentication scheme
457-
and a 'realm'. The header looks like : ``WWW-Authenticate: SCHEME
457+
and a 'realm'. The header looks like: ``WWW-Authenticate: SCHEME
458458
realm="REALM"``.
459459

460460
e.g. ::
@@ -526,7 +526,7 @@ the ``ProxyHandler``, which is part of the normal handler chain when a proxy
526526
setting is detected. Normally that's a good thing, but there are occasions
527527
when it may not be helpful [#]_. One way to do this is to setup our own
528528
``ProxyHandler``, with no proxies defined. This is done using similar steps to
529-
setting up a `Basic Authentication`_ handler : ::
529+
setting up a `Basic Authentication`_ handler: ::
530530

531531
>>> proxy_support = urllib.request.ProxyHandler({})
532532
>>> opener = urllib.request.build_opener(proxy_support)

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ updates keys found deeper in the chain::
193193
return
194194
raise KeyError(key)
195195

196-
>>> d = DeepChainMap({'zebra': 'black'}, {'elephant' : 'blue'}, {'lion' : 'yellow'})
196+
>>> d = DeepChainMap({'zebra': 'black'}, {'elephant': 'blue'}, {'lion': 'yellow'})
197197
>>> d['lion'] = 'orange' # update an existing key two levels down
198198
>>> d['snake'] = 'red' # new keys get added to the topmost dict
199199
>>> del d['elephant'] # remove an existing key one level down

Doc/library/ctypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ more about :mod:`ctypes` data types.
218218
Fundamental data types
219219
^^^^^^^^^^^^^^^^^^^^^^
220220

221-
:mod:`ctypes` defines a number of primitive C compatible data types :
221+
:mod:`ctypes` defines a number of primitive C compatible data types:
222222

223223
+----------------------+------------------------------------------+----------------------------+
224224
| ctypes type | C type | Python type |

Doc/library/telnetlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Telnet Objects
205205
.. method:: Telnet.set_option_negotiation_callback(callback)
206206

207207
Each time a telnet option is read on the input flow, this *callback* (if set) is
208-
called with the following parameters : callback(telnet socket, command
208+
called with the following parameters: callback(telnet socket, command
209209
(DO/DONT/WILL/WONT), option). No other action is done afterwards by telnetlib.
210210

211211

Doc/library/tkinter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ back will contain the name of the synonym and the "real" option (such as
440440
Example::
441441

442442
>>> print(fred.config())
443-
{'relief' : ('relief', 'relief', 'Relief', 'raised', 'groove')}
443+
{'relief': ('relief', 'relief', 'Relief', 'raised', 'groove')}
444444

445445
Of course, the dictionary printed will include all the options available and
446446
their values. This is meant only as an example.

Doc/library/unittest.mock.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,17 +1652,17 @@ Methods and their defaults:
16521652
* ``__gt__``: NotImplemented
16531653
* ``__le__``: NotImplemented
16541654
* ``__ge__``: NotImplemented
1655-
* ``__int__`` : 1
1656-
* ``__contains__`` : False
1657-
* ``__len__`` : 1
1658-
* ``__iter__`` : iter([])
1659-
* ``__exit__`` : False
1660-
* ``__complex__`` : 1j
1661-
* ``__float__`` : 1.0
1662-
* ``__bool__`` : True
1663-
* ``__index__`` : 1
1664-
* ``__hash__`` : default hash for the mock
1665-
* ``__str__`` : default str for the mock
1655+
* ``__int__``: 1
1656+
* ``__contains__``: False
1657+
* ``__len__``: 1
1658+
* ``__iter__``: iter([])
1659+
* ``__exit__``: False
1660+
* ``__complex__``: 1j
1661+
* ``__float__``: 1.0
1662+
* ``__bool__``: True
1663+
* ``__index__``: 1
1664+
* ``__hash__``: default hash for the mock
1665+
* ``__str__``: default str for the mock
16661666
* ``__sizeof__``: default sizeof for the mock
16671667

16681668
For example:

Doc/whatsnew/2.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ Here are all of the changes that Python 2.4 makes to the core Python language.
846846
['A', 'b', 'c', 'D']
847847

848848
Finally, the *reverse* parameter takes a Boolean value. If the value is true,
849-
the list will be sorted into reverse order. Instead of ``L.sort() ;
849+
the list will be sorted into reverse order. Instead of ``L.sort();
850850
L.reverse()``, you can now write ``L.sort(reverse=True)``.
851851

852852
The results of sorting are now guaranteed to be stable. This means that two

Doc/whatsnew/2.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Python's standard :mod:`string` module? There's no clean way to ignore
286286
:mod:`pkg.string` and look for the standard module; generally you had to look at
287287
the contents of ``sys.modules``, which is slightly unclean. Holger Krekel's
288288
:mod:`py.std` package provides a tidier way to perform imports from the standard
289-
library, ``import py ; py.std.string.join()``, but that package isn't available
289+
library, ``import py; py.std.string.join()``, but that package isn't available
290290
on all Python installations.
291291

292292
Reading code which relies on relative imports is also less clear, because a

0 commit comments

Comments
 (0)