Kaydet (Commit) 0a1bc11c authored tarafından Georg Brandl's avatar Georg Brandl

Fix suspicious markup in the docs.

üst 25fa27f5
...@@ -144,7 +144,7 @@ ThreadPoolExecutor Example ...@@ -144,7 +144,7 @@ ThreadPoolExecutor Example
# We can use a with statement to ensure threads are cleaned up promptly # We can use a with statement to ensure threads are cleaned up promptly
with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor: with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
# Start the load operations and mark each future with its URL # 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): for future in concurrent.futures.as_completed(future_to_url):
url = future_to_url[future] url = future_to_url[future]
try: try:
......
...@@ -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, ...@@ -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,,::,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,"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/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,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 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))" 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') ...@@ -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,,::,>>> addr6 = ipaddress.ip_address('2001:db8::1')
howto/ipaddress,,:db8,>>> host6 = ipaddress.ip_interface('2001:db8::1/96') howto/ipaddress,,:db8,>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
howto/ipaddress,,::,>>> 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,,:db8,IPv6Network('2001:db8::/96')
howto/ipaddress,,::,IPv6Network('2001:db8::/96') howto/ipaddress,,::,IPv6Network('2001:db8::/96')
howto/ipaddress,,:db8,>>> net6 = ipaddress.ip_network('2001:db8::0/96') howto/ipaddress,,:db8,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
...@@ -64,10 +67,15 @@ howto/ipaddress,,:ffff,IPv6Address('::ffff:ffff') ...@@ -64,10 +67,15 @@ howto/ipaddress,,:ffff,IPv6Address('::ffff:ffff')
howto/ipaddress,,::,IPv6Address('2001::1') howto/ipaddress,,::,IPv6Address('2001::1')
howto/ipaddress,,::,IPv6Address('2001::ffff:ffff') howto/ipaddress,,::,IPv6Address('2001::ffff:ffff')
howto/ipaddress,,:ffff,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,,:db8,'2001:db8::'
howto/ipaddress,,::,'2001:db8::' howto/ipaddress,,::,'2001:db8::'
howto/ipaddress,,:db8,'2001:db8::/96' howto/ipaddress,,:db8,'2001:db8::/96'
howto/ipaddress,,::,'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:And this, too"
howto/logging,,:And,"WARNING:root:And this, too" howto/logging,,:And,"WARNING:root:And this, too"
howto/logging,,:Doing,INFO:root:Doing something howto/logging,,:Doing,INFO:root:Doing something
...@@ -120,6 +128,7 @@ library/dis,,`,TOS = `TOS` ...@@ -120,6 +128,7 @@ library/dis,,`,TOS = `TOS`
library/doctest,,`,``factorial`` from the ``example`` module: library/doctest,,`,``factorial`` from the ``example`` module:
library/doctest,,`,The ``example`` module library/doctest,,`,The ``example`` module
library/doctest,,`,Using ``factorial`` library/doctest,,`,Using ``factorial``
library/exceptions,,:err,err.object[err.start:err.end]
library/functions,,:step,a[start:stop:step] library/functions,,:step,a[start:stop:step]
library/functions,,:stop,"a[start:stop, i]" library/functions,,:stop,"a[start:stop, i]"
library/functions,,:stop,a[start:stop:step] library/functions,,:stop,a[start:stop:step]
...@@ -280,6 +289,10 @@ library/urllib.request,,:close,Connection:close ...@@ -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,,: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/urllib.request,,:password,"""joe:password@python.org"""
library/uuid,,:uuid,urn:uuid:12345678-1234-5678-1234-567812345678 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,http://user:pass@host:port/path
library/xmlrpc.client,,:pass,user:pass library/xmlrpc.client,,:pass,user:pass
library/xmlrpc.client,,:port,http://user:pass@host:port/path library/xmlrpc.client,,:port,http://user:pass@host:port/path
...@@ -357,6 +370,9 @@ whatsnew/3.2,,:location,... zope9-location = ${zope9:location} ...@@ -357,6 +370,9 @@ whatsnew/3.2,,:location,... zope9-location = ${zope9:location}
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/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,,:platform,:platform:
whatsnew/news,,:password,: Unquote before b64encoding user:password during Basic whatsnew/news,,:password,: Unquote before b64encoding user:password during Basic
whatsnew/news,,:close,Connection:close header. whatsnew/news,,:close,Connection:close header.
......
...@@ -1185,7 +1185,7 @@ Documentation ...@@ -1185,7 +1185,7 @@ Documentation
- Create a 'Concurrent Execution' section in the docs, and split up the - Create a 'Concurrent Execution' section in the docs, and split up the
'Optional Operating System Services' section to use a more user-centric 'Optional Operating System Services' section to use a more user-centric
classification scheme (splitting them across the new CE section, IPC and text 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. ``: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 - Issue #4966: Bring the sequence docs up to date for the Py3k transition and
...@@ -3393,7 +3393,7 @@ Library ...@@ -3393,7 +3393,7 @@ Library
- Issue #13589: Fix some serialization primitives in the aifc module. - Issue #13589: Fix some serialization primitives in the aifc module.
Patch by Oleg Plakhotnyuk. 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. Authentication. Patch contributed by Joonas Kuorilehto.
- Issue #13726: Fix the ambiguous -S flag in regrtest. It is -o/--slow for slow - Issue #13726: Fix the ambiguous -S flag in regrtest. It is -o/--slow for slow
...@@ -3877,8 +3877,8 @@ Library ...@@ -3877,8 +3877,8 @@ Library
- Issue #12590: IDLE editor window now always displays the first line - 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. 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) - Issue #12576: Fix urlopen behavior on sites which do not send (or obfuscate)
Connection:close header. a ``Connection: close`` header.
- Issue #12102: Document that buffered files must be flushed before being used - Issue #12102: Document that buffered files must be flushed before being used
with mmap. Patch by Steffen Daode Nurpmeso. with mmap. Patch by Steffen Daode Nurpmeso.
...@@ -4204,7 +4204,7 @@ Library ...@@ -4204,7 +4204,7 @@ Library
Patch by John O'Connor. Patch by John O'Connor.
- Issue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError. - 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(). IDLE to exit. Converted to valid Unicode null in PythonCmd().
- Issue #11799: urllib.request Authentication Handlers will raise a ValueError - Issue #11799: urllib.request Authentication Handlers will raise a ValueError
...@@ -4483,7 +4483,7 @@ Library ...@@ -4483,7 +4483,7 @@ Library
- Issue #11127: Raise a TypeError when trying to pickle a socket object. - 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 class which helps in closing of sockets after connection is over. Patch
contributions by Jeff McNeil and Nadeem Vawda. contributions by Jeff McNeil and Nadeem Vawda.
...@@ -4991,7 +4991,7 @@ Tests ...@@ -4991,7 +4991,7 @@ Tests
- Issue #11505: improves test coverage of string.py. Patch by Alicia - Issue #11505: improves test coverage of string.py. Patch by Alicia
Arlen 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. false positive if the last directory in the path is inaccessible.
- Issue #11223: Fix test_threadsignals to fail, not hang, when the - Issue #11223: Fix test_threadsignals to fail, not hang, when the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment