Skip to content

Commit 7d2d3b6

Browse files
author
georg.brandl
committed
#4811: fix markup glitches (mostly remains of the conversion),
found by Gabriel Genellina. git-svn-id: http://svn.python.org/projects/python/trunk@68171 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 0569ad2 commit 7d2d3b6

File tree

19 files changed

+42
-39
lines changed

19 files changed

+42
-39
lines changed

Doc/ACKS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ [email protected]), and we'll be glad to correct the problem.
6060
* Peter Funk
6161
* Lele Gaifax
6262
* Matthew Gallagher
63+
* Gabriel Genellina
6364
* Ben Gertzfield
6465
* Nadim Ghaznavi
6566
* Jonathan Giddy

Doc/c-api/arg.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ variable(s) whose address should be passed.
4646
:ctype:`Py_ssize_t` rather than an int.
4747

4848
``s*`` (string, Unicode, or any buffer compatible object) [Py_buffer \*]
49-
Similar to ``s#``, this code fills a Py_buffer structure provided by the caller.
50-
The buffer gets locked, so that the caller can subsequently use the buffer even
51-
inside a ``Py_BEGIN_ALLOW_THREADS`` block; the caller is responsible for calling
52-
``PyBuffer_Release`` with the structure after it has processed the data.
49+
Similar to ``s#``, this code fills a Py_buffer structure provided by the caller.
50+
The buffer gets locked, so that the caller can subsequently use the buffer even
51+
inside a ``Py_BEGIN_ALLOW_THREADS`` block; the caller is responsible for calling
52+
``PyBuffer_Release`` with the structure after it has processed the data.
5353

54-
.. versionadded:: 2.6
54+
.. versionadded:: 2.6
5555

5656
``z`` (string or ``None``) [const char \*]
5757
Like ``s``, but the Python object may also be ``None``, in which case the C
@@ -63,7 +63,7 @@ variable(s) whose address should be passed.
6363
``z*`` (string or ``None`` or any buffer compatible object) [Py_buffer*]
6464
This is to ``s*`` as ``z`` is to ``s``.
6565

66-
.. versionadded:: 2.6
66+
.. versionadded:: 2.6
6767

6868
``u`` (Unicode object) [Py_UNICODE \*]
6969
Convert a Python Unicode object to a C pointer to a NUL-terminated buffer of
@@ -261,6 +261,7 @@ variable(s) whose address should be passed.
261261

262262
``w*`` (read-write byte-oriented buffer) [Py_buffer \*]
263263
This is to ``w`` what ``s*`` is to ``s``.
264+
264265
.. versionadded:: 2.6
265266

266267
``(items)`` (tuple) [*matching-items*]

Doc/distutils/apiref.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,10 @@ the full reference.
188188
| | for C/C++ header files (in | |
189189
| | Unix form for portability) | |
190190
+------------------------+--------------------------------+---------------------------+
191-
| *define_macros* | list of macros to define; each | (string,string) tuple or |
192-
| | macro is defined using a | (name,``None``) |
193-
| | 2-tuple, where 'value' is | |
191+
| *define_macros* | list of macros to define; each | (string, string) tuple or |
192+
| | macro is defined using a | (name, ``None``) |
193+
| | 2-tuple ``(name, value)``, | |
194+
| | where *value* is | |
194195
| | either the string to define it | |
195196
| | to or ``None`` to define it | |
196197
| | without a particular value | |

Doc/howto/functional.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ And here's an example of changing the counter:
585585
9
586586
>>> print it.next()
587587
Traceback (most recent call last):
588-
File ``t.py'', line 15, in ?
588+
File "t.py", line 15, in ?
589589
print it.next()
590590
StopIteration
591591

Doc/howto/urllib2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ than the URL you pass to .add_password() will also match. ::
470470
password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm()
471471

472472
# Add the username and password.
473-
# If we knew the realm, we could use it instead of ``None``.
473+
# If we knew the realm, we could use it instead of None.
474474
top_level_url = "http://example.com/foo/"
475475
password_mgr.add_password(None, top_level_url, username, password)
476476

Doc/install/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ value of ``sys.path``. ::
587587
$ python
588588
Python 2.2 (#11, Oct 3 2002, 13:31:27)
589589
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-112)] on linux2
590-
Type ``help'', ``copyright'', ``credits'' or ``license'' for more information.
590+
Type "help", "copyright", "credits" or "license" for more information.
591591
>>> import sys
592592
>>> sys.path
593593
['', '/usr/local/lib/python2.3', '/usr/local/lib/python2.3/plat-linux2',

Doc/library/cookielib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ accessed using the following methods:
733733
The :class:`Cookie` class also defines the following method:
734734

735735

736-
.. method:: Cookie.is_expired([now=:const:`None`])
736+
.. method:: Cookie.is_expired([now=None])
737737

738738
True if cookie has passed the time at which the server requested it should
739739
expire. If *now* is given (in seconds since the epoch), return whether the

Doc/library/email.mime.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ Here are the classes:
5757

5858
.. currentmodule:: email.mime.multipart
5959

60-
.. class:: MIMEMultipart([subtype[, boundary[, _subparts[, _params]]]])
60+
.. class:: MIMEMultipart([_subtype[, boundary[, _subparts[, _params]]]])
6161

6262
Module: :mod:`email.mime.multipart`
6363

6464
A subclass of :class:`MIMEBase`, this is an intermediate base class for MIME
6565
messages that are :mimetype:`multipart`. Optional *_subtype* defaults to
6666
:mimetype:`mixed`, but can be used to specify the subtype of the message. A
67-
:mailheader:`Content-Type` header of :mimetype:`multipart/`*_subtype* will be
67+
:mailheader:`Content-Type` header of :mimetype:`multipart/_subtype` will be
6868
added to the message object. A :mailheader:`MIME-Version` header will also be
6969
added.
7070

Doc/library/gzip.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This module provides a simple interface to compress and decompress files just
88
like the GNU programs :program:`gzip` and :program:`gunzip` would.
99

10-
The data compression is provided by the :mod:``zlib`` module.
10+
The data compression is provided by the :mod:`zlib` module.
1111

1212
The :mod:`gzip` module provides the :class:`GzipFile` class which is modeled
1313
after Python's File Object. The :class:`GzipFile` class reads and writes

Doc/library/json.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Basic Usage
152152
*default(obj)* is a function that should return a serializable version of
153153
*obj* or raise :exc:`TypeError`. The default simply raises :exc:`TypeError`.
154154

155-
To use a custom :class:`JSONEncoder`` subclass (e.g. one that overrides the
155+
To use a custom :class:`JSONEncoder` subclass (e.g. one that overrides the
156156
:meth:`default` method to serialize additional types), specify it with the
157157
*cls* kwarg.
158158

0 commit comments

Comments
 (0)