Fix suspicious markup in the docs.

This commit is contained in:
Georg Brandl 2013-03-23 15:59:46 +01:00
parent 25fa27f5e9
commit 0a1bc11c66
3 changed files with 24 additions and 8 deletions

View file

@ -144,7 +144,7 @@ ThreadPoolExecutor Example
# We can use a with statement to ensure threads are cleaned up promptly
with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
# Start the load operations and mark each future with its URL
future_to_url = {executor.submit(load_url, url, 60):url for url in URLS}
future_to_url = {executor.submit(load_url, url, 60): url for url in URLS}
for future in concurrent.futures.as_completed(future_to_url):
url = future_to_url[future]
try:

View file

@ -17,6 +17,7 @@ faq/programming,,:chr,">=4.0) or 1+f(xc,yc,x*x-y*y+xc,2.0*x*y+yc,k-1,f):f(xc,yc,
faq/programming,,::,for x in sequence[::-1]:
faq/programming,,:reduce,"print((lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+y,map(lambda y,"
faq/programming,,:reduce,"Sx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,"
faq/windows,,:bd8afb90ebf2,"Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32"
faq/windows,229,:EOF,@setlocal enableextensions & python -x %~f0 %* & goto :EOF
faq/windows,393,:REG,.py :REG_SZ: c:\<path to python>\python.exe -u %s %s
howto/cporting,,:add,"if (!PyArg_ParseTuple(args, ""ii:add_ints"", &one, &two))"
@ -51,6 +52,8 @@ 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,>>> ipaddress.ip_interface('2001:db8::1/96')
howto/ipaddress,,::,>>> 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')
@ -64,10 +67,15 @@ 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/ipaddress,,:db8,IPv6Address('2001:db8::ffff:ffff')
howto/ipaddress,,::,IPv6Address('2001:db8::ffff:ffff')
howto/ipaddress,,:ffff,IPv6Address('2001:db8::ffff:ffff')
howto/ipaddress,,:db8,'2001:db8::'
howto/ipaddress,,::,'2001:db8::'
howto/ipaddress,,:db8,'2001:db8::/96'
howto/ipaddress,,::,'2001:db8::/96'
howto/ipaddress,,:db8,'2001:db8::1'
howto/ipaddress,,::,'2001:db8::1'
howto/logging,,:And,"WARNING:And this, too"
howto/logging,,:And,"WARNING:root:And this, too"
howto/logging,,:Doing,INFO:root:Doing something
@ -120,6 +128,7 @@ library/dis,,`,TOS = `TOS`
library/doctest,,`,``factorial`` from the ``example`` module:
library/doctest,,`,The ``example`` module
library/doctest,,`,Using ``factorial``
library/exceptions,,:err,err.object[err.start:err.end]
library/functions,,:step,a[start:stop:step]
library/functions,,:stop,"a[start:stop, i]"
library/functions,,:stop,a[start:stop:step]
@ -280,6 +289,10 @@ library/urllib.request,,:close,Connection:close
library/urllib.request,,:lang,"xmlns=""http://www.w3.org/1999/xhtml"" xml:lang=""en"" lang=""en"">\n\n<head>\n"
library/urllib.request,,:password,"""joe:password@python.org"""
library/uuid,,:uuid,urn:uuid:12345678-1234-5678-1234-567812345678
library/venv,,:param,":param nodist: If True, Distribute is not installed into the created"
library/venv,,:param,":param nopip: If True, pip is not installed into the created"
library/venv,,:param,":param progress: If Distribute or pip are installed, the progress of the"
library/venv,,:param,:param context: The information for the environment creation request
library/xmlrpc.client,,:pass,http://user:pass@host:port/path
library/xmlrpc.client,,:pass,user:pass
library/xmlrpc.client,,:port,http://user:pass@host:port/path
@ -357,6 +370,9 @@ whatsnew/3.2,,:location,... zope9-location = ${zope9:location}
whatsnew/3.2,,:location,zope9-location = ${zope9:location}
whatsnew/3.2,,:prefix,... zope-conf = ${custom:prefix}/etc/zope.conf
whatsnew/3.2,,:prefix,zope-conf = ${custom:prefix}/etc/zope.conf
whatsnew/changelog,,:platform,:platform:
whatsnew/changelog,,:password,user:password
whatsnew/changelog,,::,": Fix FTP tests for IPv6, bind to ""::1"" instead of ""localhost""."
whatsnew/news,,:platform,:platform:
whatsnew/news,,:password,: Unquote before b64encoding user:password during Basic
whatsnew/news,,:close,Connection:close header.

1 c-api/arg :ref PyArg_ParseTuple(args, "O|O:ref", &object, &callback)
17 faq/programming :: for x in sequence[::-1]:
18 faq/programming :reduce print((lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+y,map(lambda y,
19 faq/programming :reduce Sx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,
20 faq/windows :bd8afb90ebf2 Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32
21 faq/windows 229 :EOF @setlocal enableextensions & python -x %~f0 %* & goto :EOF
22 faq/windows 393 :REG .py :REG_SZ: c:\<path to python>\python.exe -u %s %s
23 howto/cporting :add if (!PyArg_ParseTuple(args, "ii:add_ints", &one, &two))
52 howto/ipaddress :: >>> addr6 = ipaddress.ip_address('2001:db8::1')
53 howto/ipaddress :db8 >>> host6 = ipaddress.ip_interface('2001:db8::1/96')
54 howto/ipaddress :: >>> host6 = ipaddress.ip_interface('2001:db8::1/96')
55 howto/ipaddress :db8 >>> ipaddress.ip_interface('2001:db8::1/96')
56 howto/ipaddress :: >>> ipaddress.ip_interface('2001:db8::1/96')
57 howto/ipaddress :db8 IPv6Network('2001:db8::/96')
58 howto/ipaddress :: IPv6Network('2001:db8::/96')
59 howto/ipaddress :db8 >>> net6 = ipaddress.ip_network('2001:db8::0/96')
67 howto/ipaddress :: IPv6Address('2001::1')
68 howto/ipaddress :: IPv6Address('2001::ffff:ffff')
69 howto/ipaddress :ffff IPv6Address('2001::ffff:ffff')
70 howto/ipaddress :db8 IPv6Address('2001:db8::ffff:ffff')
71 howto/ipaddress :: IPv6Address('2001:db8::ffff:ffff')
72 howto/ipaddress :ffff IPv6Address('2001:db8::ffff:ffff')
73 howto/ipaddress :db8 '2001:db8::'
74 howto/ipaddress :: '2001:db8::'
75 howto/ipaddress :db8 '2001:db8::/96'
76 howto/ipaddress :: '2001:db8::/96'
77 howto/ipaddress :db8 '2001:db8::1'
78 howto/ipaddress :: '2001:db8::1'
79 howto/logging :And WARNING:And this, too
80 howto/logging :And WARNING:root:And this, too
81 howto/logging :Doing INFO:root:Doing something
128 library/doctest ` ``factorial`` from the ``example`` module:
129 library/doctest ` The ``example`` module
130 library/doctest ` Using ``factorial``
131 library/exceptions :err err.object[err.start:err.end]
132 library/functions :step a[start:stop:step]
133 library/functions :stop a[start:stop, i]
134 library/functions :stop a[start:stop:step]
289 library/urllib.request :lang xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n\n<head>\n
290 library/urllib.request :password "joe:password@python.org"
291 library/uuid :uuid urn:uuid:12345678-1234-5678-1234-567812345678
292 library/venv :param :param nodist: If True, Distribute is not installed into the created
293 library/venv :param :param nopip: If True, pip is not installed into the created
294 library/venv :param :param progress: If Distribute or pip are installed, the progress of the
295 library/venv :param :param context: The information for the environment creation request
296 library/xmlrpc.client :pass http://user:pass@host:port/path
297 library/xmlrpc.client :pass user:pass
298 library/xmlrpc.client :port http://user:pass@host:port/path
370 whatsnew/3.2 :location zope9-location = ${zope9:location}
371 whatsnew/3.2 :prefix ... zope-conf = ${custom:prefix}/etc/zope.conf
372 whatsnew/3.2 :prefix zope-conf = ${custom:prefix}/etc/zope.conf
373 whatsnew/changelog :platform :platform:
374 whatsnew/changelog :password user:password
375 whatsnew/changelog :: : Fix FTP tests for IPv6, bind to "::1" instead of "localhost".
376 whatsnew/news :platform :platform:
377 whatsnew/news :password : Unquote before b64encoding user:password during Basic
378 whatsnew/news :close Connection:close header.

View file

@ -1185,7 +1185,7 @@ Documentation
- Create a 'Concurrent Execution' section in the docs, and split up the
'Optional Operating System Services' section to use a more user-centric
classification scheme (splitting them across the new CE section, IPC and text
processing). Operating system limitatons can be reflected with the Sphinx
processing). Operating system limitations can be reflected with the Sphinx
``:platform:`` tag, it doesn't make sense as part of the Table of Contents.
- Issue #4966: Bring the sequence docs up to date for the Py3k transition and
@ -3393,7 +3393,7 @@ Library
- Issue #13589: Fix some serialization primitives in the aifc module.
Patch by Oleg Plakhotnyuk.
- Issue #13642: Unquote before b64encoding user:password during Basic
- Issue #13642: Unquote before b64encoding ``user:password`` during Basic
Authentication. Patch contributed by Joonas Kuorilehto.
- Issue #13726: Fix the ambiguous -S flag in regrtest. It is -o/--slow for slow
@ -3877,8 +3877,8 @@ Library
- Issue #12590: IDLE editor window now always displays the first line
when opening a long file. With Tk 8.5, the first line was hidden.
- Issue #12576: Fix urlopen behavior on sites which do not send (or obfuscates)
Connection:close header.
- Issue #12576: Fix urlopen behavior on sites which do not send (or obfuscate)
a ``Connection: close`` header.
- Issue #12102: Document that buffered files must be flushed before being used
with mmap. Patch by Steffen Daode Nurpmeso.
@ -4204,7 +4204,7 @@ Library
Patch by John O'Connor.
- Issue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError.
With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused
With Tk < 8.5, PythonCmd() in _tkinter.c raised UnicodeDecodeError, caused
IDLE to exit. Converted to valid Unicode null in PythonCmd().
- Issue #11799: urllib.request Authentication Handlers will raise a ValueError
@ -4483,7 +4483,7 @@ Library
- Issue #11127: Raise a TypeError when trying to pickle a socket object.
- Issue #11563: Connection:close header is sent by requests using URLOpener
- Issue #11563: ``Connection: close`` header is sent by requests using URLOpener
class which helps in closing of sockets after connection is over. Patch
contributions by Jeff McNeil and Nadeem Vawda.
@ -4991,7 +4991,7 @@ Tests
- Issue #11505: improves test coverage of string.py. Patch by Alicia
Arlen
- Issue #11490: test_subprocess:test_leaking_fds_on_error no longer gives a
- Issue #11490: test_subprocess.test_leaking_fds_on_error no longer gives a
false positive if the last directory in the path is inaccessible.
- Issue #11223: Fix test_threadsignals to fail, not hang, when the