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

Skip to content

Commit 3539afd

Browse files
committed
Update pydoc topics and fix new suspicious markup.
1 parent a0cf90e commit 3539afd

6 files changed

Lines changed: 47 additions & 15 deletions

File tree

Doc/faq/library.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ When run, this will produce the following output:
351351
Worker <Thread(worker 1, started 130283832797456)> running with argument 5
352352
...
353353
354-
Consult the module's documentation for more details; the :class:`~queue.Queue``
354+
Consult the module's documentation for more details; the :class:`~queue.Queue`
355355
class provides a featureful interface.
356356

357357

Doc/library/email.generator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Here are the public methods of the :class:`Generator` class, imported from the
5555

5656
The *policy* keyword specifies a :mod:`~email.policy` object that controls a
5757
number of aspects of the generator's operation. If no *policy* is specified,
58-
then the *policy* attached to the message object passed to :attr:``flatten``
58+
then the *policy* attached to the message object passed to :attr:`flatten`
5959
is used.
6060

6161
.. versionchanged:: 3.3 Added the *policy* keyword.

Doc/library/venv.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ hooks available for subclass customization::
136136
def create(self, env_dir):
137137
"""
138138
Create a virtualized Python environment in a directory.
139-
140-
:param env_dir: The target directory to create an environment in.
141-
139+
env_dir is the target directory to create an environment in.
142140
"""
143141
env_dir = os.path.abspath(env_dir)
144142
context = self.create_directories(env_dir)

Doc/tools/sphinxext/susp-ignored.csv

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,40 @@ howto/curses,,:magenta,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:m
3030
howto/curses,,:red,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
3131
howto/curses,,:white,"7:white."
3232
howto/curses,,:yellow,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
33+
howto/ipaddress,,:DB8,>>> ipaddress.ip_address('2001:DB8::1')
34+
howto/ipaddress,,::,>>> ipaddress.ip_address('2001:DB8::1')
35+
howto/ipaddress,,:db8,IPv6Address('2001:db8::1')
36+
howto/ipaddress,,::,IPv6Address('2001:db8::1')
37+
howto/ipaddress,,:db8,IPv6Address('2001:db8::1')
38+
howto/ipaddress,,::,IPv6Address('2001:db8::1')
39+
howto/ipaddress,,::,IPv6Address('::1')
40+
howto/ipaddress,,:db8,>>> ipaddress.ip_network('2001:db8::0/96')
41+
howto/ipaddress,,::,>>> ipaddress.ip_network('2001:db8::0/96')
42+
howto/ipaddress,,:db8,IPv6Network('2001:db8::/96')
43+
howto/ipaddress,,::,IPv6Network('2001:db8::/96')
44+
howto/ipaddress,,:db8,IPv6Network('2001:db8::/128')
45+
howto/ipaddress,,::,IPv6Network('2001:db8::/128')
46+
howto/ipaddress,,:db8,>>> ipaddress.ip_network('2001:db8::1/96')
47+
howto/ipaddress,,::,>>> ipaddress.ip_network('2001:db8::1/96')
48+
howto/ipaddress,,:db8,IPv6Interface('2001:db8::1/96')
49+
howto/ipaddress,,::,IPv6Interface('2001:db8::1/96')
50+
howto/ipaddress,,:db8,>>> addr6 = ipaddress.ip_address('2001:db8::1')
51+
howto/ipaddress,,::,>>> addr6 = ipaddress.ip_address('2001:db8::1')
52+
howto/ipaddress,,:db8,>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
53+
howto/ipaddress,,::,>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
54+
howto/ipaddress,,:db8,IPv6Network('2001:db8::/96')
55+
howto/ipaddress,,::,IPv6Network('2001:db8::/96')
56+
howto/ipaddress,,:db8,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
57+
howto/ipaddress,,::,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
58+
howto/ipaddress,,:db8,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
59+
howto/ipaddress,,::,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
60+
howto/ipaddress,,:ffff,IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
61+
howto/ipaddress,,::,IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
62+
howto/ipaddress,,::,IPv6Address('::ffff:ffff')
63+
howto/ipaddress,,:ffff,IPv6Address('::ffff:ffff')
64+
howto/ipaddress,,::,IPv6Address('2001::1')
65+
howto/ipaddress,,::,IPv6Address('2001::ffff:ffff')
66+
howto/ipaddress,,:ffff,IPv6Address('2001::ffff:ffff')
3367
howto/logging,,:And,"WARNING:And this, too"
3468
howto/logging,,:And,"WARNING:root:And this, too"
3569
howto/logging,,:Doing,INFO:root:Doing something

Doc/whatsnew/3.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ any of the above controls as keyword arguments. Any control not specified in
600600
the call retains its default value. Thus you can create a policy that uses
601601
``\r\n`` linesep characters like this::
602602

603-
mypolicy = compat32.clone(linesep=`\r\n`)
603+
mypolicy = compat32.clone(linesep='\r\n')
604604

605605
Policies can be used to make the generation of messages in the format needed by
606606
your application simpler. Instead of having to remember to specify

0 commit comments

Comments
 (0)