Skip to content

Commit 75da357

Browse files
committed
Backport rev. 3ae74b361f53 to 2.7 branch.
2 parents 75207ab + 44ea77b commit 75da357

20 files changed

+59
-8
lines changed

Doc/c-api/unicode.rst

+2
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ APIs:
252252
.. % because not all compilers support the %z width modifier -- we fake it
253253
.. % when necessary via interpolating PY_FORMAT_SIZE_T.
254254
255+
.. tabularcolumns:: |l|l|L|
256+
255257
+-------------------+---------------------+--------------------------------+
256258
| Format Characters | Type | Comment |
257259
+===================+=====================+================================+

Doc/distutils/apiref.rst

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and
2626
The setup function takes a large number of arguments. These are laid out in the
2727
following table.
2828

29+
.. tabularcolumns:: |l|L|L|
30+
2931
+--------------------+--------------------------------+-------------------------------------------------------------+
3032
| argument name | value | type |
3133
+====================+================================+=============================================================+
@@ -125,6 +127,8 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and
125127

126128
*stop_after* tells :func:`setup` when to stop processing; possible values:
127129

130+
.. tabularcolumns:: |l|L|
131+
128132
+---------------+---------------------------------------------+
129133
| value | description |
130134
+===============+=============================================+
@@ -165,6 +169,8 @@ the full reference.
165169
The Extension class describes a single C or C++extension module in a setup
166170
script. It accepts the following keyword arguments in its constructor
167171

172+
.. tabularcolumns:: |l|L|l|
173+
168174
+------------------------+--------------------------------+---------------------------+
169175
| argument name | value | type |
170176
+========================+================================+===========================+
@@ -1556,6 +1562,8 @@ lines, and joining lines with backslashes.
15561562

15571563
The options are all boolean, and affect the values returned by :meth:`readline`
15581564

1565+
.. tabularcolumns:: |l|L|l|
1566+
15591567
+------------------+--------------------------------+---------+
15601568
| option name | description | default |
15611569
+==================+================================+=========+

Doc/faq/extending.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
Extending/Embedding FAQ
33
=======================
44

5-
.. contents::
5+
.. only:: html
6+
7+
.. contents::
68

79
.. highlight:: c
810

Doc/faq/general.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
General Python FAQ
55
==================
66

7-
.. contents::
7+
.. only:: html
8+
9+
.. contents::
10+
811

912
General Information
1013
===================

Doc/faq/gui.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
Graphic User Interface FAQ
55
==========================
66

7-
.. contents::
7+
.. only:: html
8+
9+
.. contents::
810

911
What platform-independent GUI toolkits exist for Python?
1012
========================================================

Doc/faq/library.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
Library and Extension FAQ
55
=========================
66

7-
.. contents::
7+
.. only:: html
8+
9+
.. contents::
810

911
General Library Questions
1012
=========================

Doc/faq/programming.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
Programming FAQ
55
===============
66

7-
.. contents::
7+
.. only:: html
8+
9+
.. contents::
810

911
General Questions
1012
=================

Doc/faq/windows.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
Python on Windows FAQ
77
=====================
88

9-
.. contents::
9+
.. only:: html
10+
11+
.. contents::
1012

1113
How do I run a Python program under Windows?
1214
--------------------------------------------

Doc/howto/logging.rst

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ The logging functions are named after the level or severity of the events
6363
they are used to track. The standard levels and their applicability are
6464
described below (in increasing order of severity):
6565

66+
.. tabularcolumns:: |l|L|
67+
6668
+--------------+---------------------------------------------+
6769
| Level | When it's used |
6870
+==============+=============================================+

Doc/install/index.rst

+2
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ by how you built/installed Python itself. On Unix (and Mac OS X, which is also
235235
Unix-based), it also depends on whether the module distribution being installed
236236
is pure Python or contains extensions ("non-pure"):
237237

238+
.. tabularcolumns:: |l|l|l|l|
239+
238240
+-----------------+-----------------------------------------------------+--------------------------------------------------+-------+
239241
| Platform | Standard installation location | Default value | Notes |
240242
+=================+=====================================================+==================================================+=======+

Doc/library/codecs.rst

+6
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ To simplify and standardize error handling, the :meth:`encode` and
320320
providing the *errors* string argument. The following string values are defined
321321
and implemented by all standard Python codecs:
322322

323+
.. tabularcolumns:: |l|L|
324+
323325
+-------------------------+-----------------------------------------------+
324326
| Value | Meaning |
325327
+=========================+===============================================+
@@ -887,6 +889,8 @@ particular, the following variants typically exist:
887889

888890
* an IBM PC code page, which is ASCII compatible
889891

892+
.. tabularcolumns:: |l|p{0.3\linewidth}|p{0.3\linewidth}|
893+
890894
+-----------------+--------------------------------+--------------------------------+
891895
| Codec | Aliases | Languages |
892896
+=================+================================+================================+
@@ -1103,6 +1107,8 @@ For the codecs listed below, the result in the "encoding" direction is always a
11031107
byte string. The result of the "decoding" direction is listed as operand type in
11041108
the table.
11051109

1110+
.. tabularcolumns:: |l|p{0.3\linewidth}|l|p{0.3\linewidth}|
1111+
11061112
+--------------------+---------------------------+----------------+---------------------------+
11071113
| Codec | Aliases | Operand type | Purpose |
11081114
+====================+===========================+================+===========================+

Doc/library/locale.rst

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ The :mod:`locale` module defines the following exception and functions:
5959
Returns the database of the local conventions as a dictionary. This dictionary
6060
has the following strings as keys:
6161

62+
.. tabularcolumns:: |l|l|L|
63+
6264
+----------------------+-------------------------------------+--------------------------------+
6365
| Category | Key | Meaning |
6466
+======================+=====================================+================================+

Doc/library/logging.rst

+2
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,8 @@ functions.
893893

894894
The following keyword arguments are supported.
895895

896+
.. tabularcolumns:: |l|L|
897+
896898
+--------------+---------------------------------------------+
897899
| Format | Description |
898900
+==============+=============================================+

Doc/library/subprocess.rst

+2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ use cases, the underlying :class:`Popen` interface can be used directly.
145145

146146
.. versionadded:: 2.7
147147

148+
..
149+
148150
.. warning::
149151

150152
Invoking the system shell with ``shell=True`` can be a security hazard

Doc/library/sys.rst

+4
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ always available.
302302
5.2.4.2.2 of the 1999 ISO/IEC C standard [C99]_, 'Characteristics of
303303
floating types', for details.
304304

305+
.. tabularcolumns:: |l|l|L|
306+
305307
+---------------------+----------------+--------------------------------------------------+
306308
| attribute | float.h macro | explanation |
307309
+=====================+================+==================================================+
@@ -599,6 +601,8 @@ always available.
599601
A struct sequence that holds information about Python's
600602
internal representation of integers. The attributes are read only.
601603

604+
.. tabularcolumns:: |l|L|
605+
602606
+-------------------------+----------------------------------------------+
603607
| Attribute | Explanation |
604608
+=========================+==============================================+

Doc/library/turtle.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -2173,9 +2173,11 @@ It contains:
21732173

21742174
The demoscripts are:
21752175

2176+
.. tabularcolumns:: |l|L|L|
2177+
21762178
+----------------+------------------------------+-----------------------+
21772179
| Name | Description | Features |
2178-
+----------------+------------------------------+-----------------------+
2180+
+================+==============================+=======================+
21792181
| bytedesign | complex classical | :func:`tracer`, delay,|
21802182
| | turtlegraphics pattern | :func:`update` |
21812183
+----------------+------------------------------+-----------------------+

Doc/library/warnings.rst

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ There are a number of built-in exceptions that represent warning categories.
5757
This categorization is useful to be able to filter out groups of warnings. The
5858
following warnings category classes are currently defined:
5959

60+
.. tabularcolumns:: |l|p{0.6\linewidth}|
61+
6062
+----------------------------------+-----------------------------------------------+
6163
| Class | Description |
6264
+==================================+===============================================+

Doc/library/xml.etree.elementtree.rst

+2
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ module. We'll be using the ``countrydata`` XML document from the
312312
Supported XPath syntax
313313
^^^^^^^^^^^^^^^^^^^^^^
314314

315+
.. tabularcolumns:: |l|L|
316+
315317
+-----------------------+------------------------------------------------------+
316318
| Syntax | Meaning |
317319
+=======================+======================================================+

Doc/reference/datamodel.rst

+2
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ Callable types
481481

482482
Special attributes:
483483

484+
.. tabularcolumns:: |l|L|l|
485+
484486
+-----------------------+-------------------------------+-----------+
485487
| Attribute | Meaning | |
486488
+=======================+===============================+===========+

Doc/reference/expressions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ groups from right to left).
13701370
| :keyword:`not` ``x`` | Boolean NOT |
13711371
+-----------------------------------------------+-------------------------------------+
13721372
| :keyword:`in`, :keyword:`not in`, | Comparisons, including membership |
1373-
| :keyword:`is`, :keyword:`is not`, ``<``, | tests and identity tests, |
1373+
| :keyword:`is`, :keyword:`is not`, ``<``, | tests and identity tests |
13741374
| ``<=``, ``>``, ``>=``, ``<>``, ``!=``, ``==`` | |
13751375
+-----------------------------------------------+-------------------------------------+
13761376
| ``|`` | Bitwise OR |

0 commit comments

Comments
 (0)