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

Skip to content

Commit ed007d5

Browse files
committed
Fix suspicious markup in the docs.
1 parent 163d7f0 commit ed007d5

7 files changed

Lines changed: 22 additions & 20 deletions

File tree

Doc/library/email.contentmanager.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ this module.
9696
only it when looking for candidate matches. Otherwise consider only the
9797
first (default root) part of the ``multipart/related``.
9898

99-
If a part has a :mailheader:``Content-Disposition`` header, only consider
99+
If a part has a :mailheader:`Content-Disposition` header, only consider
100100
the part a candidate match if the value of the header is ``inline``.
101101

102102
If none of the candidates matches any of the preferences in
@@ -134,7 +134,7 @@ this module.
134134

135135
Return an iterator over all of the immediate sub-parts of the message,
136136
which will be empty for a non-``multipart``. (See also
137-
:meth:``~email.message.walk``.)
137+
:meth:`~email.message.walk`.)
138138

139139

140140
.. method:: get_content(*args, content_manager=None, **kw)

Doc/library/email.message.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Here are the methods of the :class:`Message` class:
3535

3636
If *policy* is specified (it must be an instance of a :mod:`~email.policy`
3737
class) use the rules it specifies to udpate and serialize the representation
38-
of the message. If *policy* is not set, use the :class`compat32
38+
of the message. If *policy* is not set, use the :class:`compat32
3939
<email.policy.Compat32>` policy, which maintains backward compatibility with
4040
the Python 3.2 version of the email package. For more information see the
4141
:mod:`~email.policy` documentation.

Doc/library/gettext.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,9 @@ applications.)
476476

477477
:program:`xgettext`, :program:`pygettext`, and similar tools generate
478478
:file:`.po` files that are message catalogs. They are structured
479-
:human-readable files that contain every marked string in the source
480-
:code, along with a placeholder for the translated versions of these
481-
:strings.
479+
human-readable files that contain every marked string in the source
480+
code, along with a placeholder for the translated versions of these
481+
strings.
482482

483483
Copies of these :file:`.po` files are then handed over to the
484484
individual human translators who write translations for every

Doc/library/unittest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,8 @@ Test cases
901901
| :meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *warn* | 3.2 |
902902
| <TestCase.assertWarnsRegex>` | and the message matches regex *r* | |
903903
+---------------------------------------------------------+--------------------------------------+------------+
904-
| :meth:`assertLogs(logger, level)` | The ``with`` block logs on *logger* | 3.4 |
905-
| <TestCase.assertWarns>` | with minimum *level* | |
904+
| :meth:`assertLogs(logger, level) | The ``with`` block logs on *logger* | 3.4 |
905+
| <TestCase.assertLogs>` | with minimum *level* | |
906906
+---------------------------------------------------------+--------------------------------------+------------+
907907

908908
.. method:: assertRaises(exception, callable, *args, **kwds)

Doc/tools/sphinxext/susp-ignored.csv

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,8 @@ library/linecache,,:sys,"sys:x:3:3:sys:/dev:/bin/sh"
141141
library/logging.handlers,,:port,host:port
142142
library/mmap,,:i2,obj[i1:i2]
143143
library/multiprocessing,,`,# Add more tasks using `put()`
144-
library/multiprocessing,,`,# A test file for the `multiprocessing` package
145-
library/multiprocessing,,`,# A test of `multiprocessing.Pool` class
146-
library/multiprocessing,,`,# `BaseManager`.
147-
library/multiprocessing,,`,# in the original order then consider using `Pool.map()` or
148144
library/multiprocessing,,`,">>> l._callmethod('__getitem__', (20,)) # equiv to `l[20]`"
149145
library/multiprocessing,,`,">>> l._callmethod('__getslice__', (2, 7)) # equiv to `l[2:7]`"
150-
library/multiprocessing,,`,# Not sure if we should synchronize access to `socket.accept()` method by
151-
library/multiprocessing,,`,# object. (We import `multiprocessing.reduction` to enable this pickling.)
152-
library/multiprocessing,,`,# `Pool.imap()` (which will save on the amount of code needed anyway).
153146
library/multiprocessing,,:queue,">>> QueueManager.register('get_queue', callable=lambda:queue)"
154147
library/multiprocessing,,`,# register the Foo class; make `f()` and `g()` accessible via proxy
155148
library/multiprocessing,,`,# register the Foo class; make `g()` and `_h()` accessible via proxy
@@ -158,6 +151,10 @@ library/nntplib,,:bytes,:bytes
158151
library/nntplib,,:lines,:lines
159152
library/optparse,,:len,"del parser.rargs[:len(value)]"
160153
library/os.path,,:foo,c:foo
154+
library/pathlib,,:bar,">>> PureWindowsPath('c:/Windows', 'd:bar')"
155+
library/pathlib,,:bar,PureWindowsPath('d:bar')
156+
library/pathlib,,:Program,>>> PureWindowsPath('c:Program Files/').root
157+
library/pathlib,,:Program,>>> PureWindowsPath('c:Program Files/').anchor
161158
library/pdb,,:lineno,filename:lineno
162159
library/pickle,,:memory,"conn = sqlite3.connect("":memory:"")"
163160
library/posix,,`,"CFLAGS=""`getconf LFS_CFLAGS`"" OPT=""-g -O2 $CFLAGS"""
@@ -200,7 +197,12 @@ library/tarfile,,:xz,'r:xz'
200197
library/tarfile,,:xz,'w:xz'
201198
library/time,,:mm,
202199
library/time,,:ss,
200+
library/tracemalloc,,:limit,"for index, stat in enumerate(top_stats[:limit], 1):"
203201
library/turtle,,::,Example::
202+
library/unittest,1412,:foo,"self.assertEqual(cm.output, ['INFO:foo:first message',"
203+
library/unittest,1412,:first,"self.assertEqual(cm.output, ['INFO:foo:first message',"
204+
library/unittest,1412,:foo,'ERROR:foo.bar:second message'])
205+
library/unittest,1412,:second,'ERROR:foo.bar:second message'])
204206
library/urllib.request,,:close,Connection:close
205207
library/urllib.request,,:lang,"xmlns=""http://www.w3.org/1999/xhtml"" xml:lang=""en"" lang=""en"">\n\n<head>\n"
206208
library/urllib.request,,:password,"""joe:[email protected]"""

Doc/whatsnew/3.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ base64
424424

425425
The encoding and decoding functions in :mod:`base64` now accept any
426426
:term:`bytes-like object` in cases where it previously required a
427-
:class:`bytes` or :class:`bytearray` instance (:issue`17839`)
427+
:class:`bytes` or :class:`bytearray` instance (:issue:`17839`).
428428

429429

430430
colorsys

Misc/NEWS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,7 +2518,7 @@ Library
25182518
- Issue #14398: Fix size truncation and overflow bugs in the bz2 module.
25192519

25202520
- Issue #12692: Fix resource leak in urllib.request when talking to an HTTP
2521-
server that does not include a "Connection: close" header in its responses.
2521+
server that does not include a ``Connection: close`` header in its responses.
25222522

25232523
- Issue #12034: Fix bogus caching of result in check_GetFinalPathNameByHandle.
25242524
Patch by Atsuo Ishimoto.
@@ -6091,7 +6091,7 @@ Library
60916091
given as a low fd, it gets overwritten.
60926092

60936093
- Issue #12576: Fix urlopen behavior on sites which do not send (or obfuscates)
6094-
Connection:close header.
6094+
``Connection: close`` header.
60956095

60966096
- Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.
60976097

@@ -6686,7 +6686,7 @@ Library
66866686

66876687
- Issue #11127: Raise a TypeError when trying to pickle a socket object.
66886688

6689-
- Issue #11563: Connection:close header is sent by requests using URLOpener
6689+
- Issue #11563: ``Connection: close`` header is sent by requests using URLOpener
66906690
class which helps in closing of sockets after connection is over. Patch
66916691
contributions by Jeff McNeil and Nadeem Vawda.
66926692

@@ -7262,7 +7262,7 @@ Tests
72627262
- Issue #11505: improves test coverage of string.py. Patch by Alicia
72637263
Arlen
72647264

7265-
- Issue #11490: test_subprocess:test_leaking_fds_on_error no longer gives a
7265+
- Issue #11490: test_subprocess.test_leaking_fds_on_error no longer gives a
72667266
false positive if the last directory in the path is inaccessible.
72677267

72687268
- Issue #11223: Fix test_threadsignals to fail, not hang, when the

0 commit comments

Comments
 (0)