Update pydoc topics and fix new suspicious markup.

This commit is contained in:
Georg Brandl 2012-05-30 22:03:20 +02:00
parent a0cf90e3b1
commit 3539afd5c9
6 changed files with 47 additions and 15 deletions

View File

@ -351,7 +351,7 @@ When run, this will produce the following output:
Worker <Thread(worker 1, started 130283832797456)> running with argument 5
...
Consult the module's documentation for more details; the :class:`~queue.Queue``
Consult the module's documentation for more details; the :class:`~queue.Queue`
class provides a featureful interface.

View File

@ -55,7 +55,7 @@ Here are the public methods of the :class:`Generator` class, imported from the
The *policy* keyword specifies a :mod:`~email.policy` object that controls a
number of aspects of the generator's operation. If no *policy* is specified,
then the *policy* attached to the message object passed to :attr:``flatten``
then the *policy* attached to the message object passed to :attr:`flatten`
is used.
.. versionchanged:: 3.3 Added the *policy* keyword.

View File

@ -136,9 +136,7 @@ hooks available for subclass customization::
def create(self, env_dir):
"""
Create a virtualized Python environment in a directory.
:param env_dir: The target directory to create an environment in.
env_dir is the target directory to create an environment in.
"""
env_dir = os.path.abspath(env_dir)
context = self.create_directories(env_dir)

View File

@ -30,6 +30,40 @@ howto/curses,,:magenta,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:m
howto/curses,,:red,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
howto/curses,,:white,"7:white."
howto/curses,,:yellow,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
howto/ipaddress,,:DB8,>>> ipaddress.ip_address('2001:DB8::1')
howto/ipaddress,,::,>>> ipaddress.ip_address('2001:DB8::1')
howto/ipaddress,,:db8,IPv6Address('2001:db8::1')
howto/ipaddress,,::,IPv6Address('2001:db8::1')
howto/ipaddress,,:db8,IPv6Address('2001:db8::1')
howto/ipaddress,,::,IPv6Address('2001:db8::1')
howto/ipaddress,,::,IPv6Address('::1')
howto/ipaddress,,:db8,>>> ipaddress.ip_network('2001:db8::0/96')
howto/ipaddress,,::,>>> ipaddress.ip_network('2001:db8::0/96')
howto/ipaddress,,:db8,IPv6Network('2001:db8::/96')
howto/ipaddress,,::,IPv6Network('2001:db8::/96')
howto/ipaddress,,:db8,IPv6Network('2001:db8::/128')
howto/ipaddress,,::,IPv6Network('2001:db8::/128')
howto/ipaddress,,:db8,>>> ipaddress.ip_network('2001:db8::1/96')
howto/ipaddress,,::,>>> ipaddress.ip_network('2001:db8::1/96')
howto/ipaddress,,:db8,IPv6Interface('2001:db8::1/96')
howto/ipaddress,,::,IPv6Interface('2001:db8::1/96')
howto/ipaddress,,:db8,>>> addr6 = ipaddress.ip_address('2001:db8::1')
howto/ipaddress,,::,>>> addr6 = ipaddress.ip_address('2001:db8::1')
howto/ipaddress,,:db8,>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
howto/ipaddress,,::,>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
howto/ipaddress,,:db8,IPv6Network('2001:db8::/96')
howto/ipaddress,,::,IPv6Network('2001:db8::/96')
howto/ipaddress,,:db8,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
howto/ipaddress,,::,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
howto/ipaddress,,:db8,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
howto/ipaddress,,::,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
howto/ipaddress,,:ffff,IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
howto/ipaddress,,::,IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
howto/ipaddress,,::,IPv6Address('::ffff:ffff')
howto/ipaddress,,:ffff,IPv6Address('::ffff:ffff')
howto/ipaddress,,::,IPv6Address('2001::1')
howto/ipaddress,,::,IPv6Address('2001::ffff:ffff')
howto/ipaddress,,:ffff,IPv6Address('2001::ffff:ffff')
howto/logging,,:And,"WARNING:And this, too"
howto/logging,,:And,"WARNING:root:And this, too"
howto/logging,,:Doing,INFO:root:Doing something

1 c-api/arg :ref PyArg_ParseTuple(args, "O|O:ref", &object, &callback)
30 howto/curses :red They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and
31 howto/curses :white 7:white.
32 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')
67 howto/logging :And WARNING:And this, too
68 howto/logging :And WARNING:root:And this, too
69 howto/logging :Doing INFO:root:Doing something

View File

@ -600,7 +600,7 @@ any of the above controls as keyword arguments. Any control not specified in
the call retains its default value. Thus you can create a policy that uses
``\r\n`` linesep characters like this::
mypolicy = compat32.clone(linesep=`\r\n`)
mypolicy = compat32.clone(linesep='\r\n')
Policies can be used to make the generation of messages in the format needed by
your application simpler. Instead of having to remember to specify

File diff suppressed because one or more lines are too long