[Python-checkins] cpython: Fix invalid markup and update suspicious ignores.

georg.brandl python-checkins at python.org
Sun Mar 4 16:22:30 CET 2012


http://hg.python.org/cpython/rev/b10427df3ab4
changeset:   75386:b10427df3ab4
user:        Georg Brandl <georg at python.org>
date:        Sun Mar 04 16:17:05 2012 +0100
summary:
  Fix invalid markup and update suspicious ignores.

files:
  Doc/library/socket.rst               |   4 +-
  Doc/library/sys.rst                  |   2 +-
  Doc/tools/sphinxext/susp-ignored.csv |  24 +++++++++++----
  3 files changed, 20 insertions(+), 10 deletions(-)


diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -1311,7 +1311,7 @@
    import struct
 
 
-   # CAN frame packing/unpacking (see `struct can_frame` in <linux/can.h>)
+   # CAN frame packing/unpacking (see 'struct can_frame' in <linux/can.h>)
 
    can_frame_fmt = "=IB3x8s"
    can_frame_size = struct.calcsize(can_frame_fmt)
@@ -1326,7 +1326,7 @@
        return (can_id, can_dlc, data[:can_dlc])
 
 
-   # create a raw socket and bind it to the `vcan0` interface
+   # create a raw socket and bind it to the 'vcan0' interface
    s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
    s.bind(('vcan0',))
 
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -770,7 +770,7 @@
    independent Python files are installed; by default, this is the string
    ``'/usr/local'``.  This can be set at build time with the ``--prefix``
    argument to the :program:`configure` script.  The main collection of Python
-   library modules is installed in the directory :file:`{prefix}/lib/python{X.Y}``
+   library modules is installed in the directory :file:`{prefix}/lib/python{X.Y}`
    while the platform independent header files (all except :file:`pyconfig.h`) are
    stored in :file:`{prefix}/include/python{X.Y}`, where *X.Y* is the version
    number of Python, for example ``3.2``.
diff --git a/Doc/tools/sphinxext/susp-ignored.csv b/Doc/tools/sphinxext/susp-ignored.csv
--- a/Doc/tools/sphinxext/susp-ignored.csv
+++ b/Doc/tools/sphinxext/susp-ignored.csv
@@ -112,9 +112,6 @@
 library/urllib,,:port,:port
 library/urllib2,,:password,"""joe:password at python.org"""
 library/uuid,,:uuid,urn:uuid:12345678-1234-5678-1234-567812345678
-library/xmlrpclib,,:pass,http://user:pass@host:port/path
-library/xmlrpclib,,:pass,user:pass
-library/xmlrpclib,,:port,http://user:pass@host:port/path
 license,,`,THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
 license,,:zooko,mailto:zooko at zooko.com
 license,,`,THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
@@ -185,14 +182,13 @@
 library/urllib.request,,:close,Connection:close
 library/urllib.request,,:password,"""joe:password at python.org"""
 library/urllib.request,,:lang,"xmlns=""http://www.w3.org/1999/xhtml"" xml:lang=""en"" lang=""en"">\n\n<head>\n"
-library/xmlrpc.client,103,:pass,http://user:pass@host:port/path
-library/xmlrpc.client,103,:port,http://user:pass@host:port/path
-library/xmlrpc.client,103,:pass,user:pass
+library/xmlrpc.client,,:pass,http://user:pass@host:port/path
+library/xmlrpc.client,,:port,http://user:pass@host:port/path
+library/xmlrpc.client,,:pass,user:pass
 license,,`,* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
 license,,`,* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
 license,,`,"``Software''), to deal in the Software without restriction, including"
 license,,`,"THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,"
-reference/lexical_analysis,704,`,$       ?       `
 whatsnew/2.7,735,:Sunday,'2009:4:Sunday'
 whatsnew/2.7,862,::,"export PYTHONWARNINGS=all,error:::Cookie:0"
 whatsnew/2.7,862,:Cookie,"export PYTHONWARNINGS=all,error:::Cookie:0"
@@ -295,3 +291,17 @@
 packaging/tutorial,,::,Type the number of the license you wish to use or ? to try again:: 1
 packaging/tutorial,,::,classifier = Development Status :: 3 - Alpha
 packaging/tutorial,,::,License :: OSI Approved :: GNU General Public License (GPL)
+c-api/unicode,,:start,unicode[start:start+length]
+library/smtplib,,:port,method must support that as well as a regular host:port
+library/socket,,:len,fds.fromstring(cmsg_data[:len(cmsg_data) - (len(cmsg_data) % fds.itemsize)])
+library/socket,,:can,"return (can_id, can_dlc, data[:can_dlc])"
+library/sqlite3,,:who,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})"
+library/sqlite3,,:age,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})"
+library/stdtypes,,::,>>> a[::2].tolist()
+library/stdtypes,,::,>>> a[::-1].tolist()
+library/stdtypes,,::,>>> hash(v[::-2]) == hash(b'abcefg'[::-2])
+library/stdtypes,,::,>>> y = m[::2]
+reference/lexical_analysis,,`,$       ?       `
+library/tarfile,,:xz,'r:xz'
+library/tarfile,,:xz,'w:xz'
+library/tarfile,,:xz,'a:xz'

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list