Skip to content

Commit 8f4247e

Browse files
committed
Remove file-level autolink-preface, extension now reads testsetup
1 parent 6348a81 commit 8f4247e

34 files changed

+2
-214
lines changed

Doc/howto/ipaddress.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
import ipaddress
44

5-
.. autolink-preface::
6-
:level: file
7-
8-
import ipaddress
9-
105
.. _ipaddress-howto:
116

127
***************************************

Doc/library/annotationlib.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
import annotationlib
1313
from annotationlib import *
1414

15-
.. autolink-preface::
16-
:level: file
17-
18-
import annotationlib
19-
from annotationlib import *
20-
2115
--------------
2216

2317
The :mod:`!annotationlib` module provides tools for introspecting

Doc/library/ast.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111

1212
import ast
1313

14-
.. autolink-preface::
15-
:level: file
16-
17-
import ast
18-
1914
**Source code:** :source:`Lib/ast.py`
2015

2116
--------------

Doc/library/asyncio-task.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ To actually run a coroutine, asyncio provides the following mechanisms:
7272

7373
Expected output:
7474

75-
.. code-block:: none
75+
.. code-block:: none
7676
7777
started at 17:13:52
7878
hello
@@ -104,7 +104,7 @@ To actually run a coroutine, asyncio provides the following mechanisms:
104104
Note that expected output now shows that the snippet runs
105105
1 second faster than before:
106106

107-
.. code-block:: none
107+
.. code-block:: none
108108
109109
started at 17:14:32
110110
hello

Doc/library/collections.abc.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
import itertools
1919
__name__ = '<doctest>'
2020

21-
.. autolink-preface::
22-
:level: file
23-
24-
from collections.abc import *
25-
import itertools
26-
2721
--------------
2822

2923
This module provides :term:`abstract base classes <abstract base class>` that

Doc/library/collections.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
import itertools
1616
__name__ = '<doctest>'
1717

18-
.. autolink-preface::
19-
:level: file
20-
21-
from collections import *
22-
import itertools
23-
2418
--------------
2519

2620
This module implements specialized container datatypes providing alternatives to

Doc/library/configparser.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ can be customized by end users easily.
5656
os.remove("example.ini")
5757
os.remove("override.ini")
5858

59-
.. autolink-preface::
60-
:level: file
61-
62-
import configparser
63-
64-
6559
Quick Start
6660
-----------
6761

Doc/library/ctypes.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,12 +490,6 @@ Return types
490490
libc = CDLL(find_library('c'))
491491
strchr = libc.strchr
492492

493-
.. autolink-preface::
494-
:level: file
495-
496-
from ctypes import CDLL, c_char, c_char_p
497-
from ctypes.util import find_library
498-
499493
By default functions are assumed to return the C :c:expr:`int` type. Other
500494
return types can be specified by setting the :attr:`~_CFuncPtr.restype` attribute of the
501495
function object.

Doc/library/decimal.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@
2828
# make sure other tests (outside this file) get a fresh context
2929
setcontext(Context())
3030

31-
.. autolink-preface::
32-
:level: file
33-
34-
import decimal
35-
import math
36-
from decimal import *
37-
38-
3931
--------------
4032

4133
The :mod:`decimal` module provides support for fast correctly rounded

Doc/library/difflib.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
import sys
1616
from difflib import *
1717

18-
.. autolink-preface::
19-
:level: file
20-
21-
import sys
22-
from difflib import *
23-
2418
--------------
2519

2620
This module provides classes and functions for comparing sequences. It

0 commit comments

Comments
 (0)