Skip to content

Commit e59d4f7

Browse files
committed
Update docs again
1 parent b9c7593 commit e59d4f7

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

docs/standard_library_imports.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ modules under their Python 3.x interfaces. The following renamed modules can be
6666
List of refactored standard library modules
6767
-------------------------------------------
6868

69-
Some modules were refactored or extended from Python 2.6/2.7 to
69+
The following modules were refactored or extended from Python 2.6/2.7 to
7070
3.x but were neither renamed nor were the new interfaces backported. The
7171
``future`` package makes the Python 3.x interfaces available on Python
72-
2.x using one of four interfaces described below. Then the following additional
73-
modules and names are supported::
72+
2.x as follows::
73+
74+
from future.standard_library import install_aliases
75+
install_aliases()
7476

7577
from collections import Counter, OrderedDict # backported to Py2.6
7678
from collections import UserDict, UserList, UserString

docs/whatsnew.rst

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,22 @@ reorganization), 30 are supported with direct imports. (These are listed here:
3838
The other 14 standard library modules that kept the same top-level names in
3939
Py3.x are not supported with this direct import interface on Py2. These include
4040
the 5 modules in the Py3 ``urllib`` package. (These are listed here:
41-
:ref:`_list-standard-library-refactored`.) These are accessible through the usual
42-
mechanisms::
43-
44-
>>> from future.standard_library import hooks
45-
>>> with hooks():
46-
... from collections import UserDict, UserList, UserString
47-
... import dbm.gnu
48-
... from itertools import filterfalse, zip_longest
49-
... from subprocess import getoutput, getstatusoutput
50-
... from sys import intern
51-
... import test.support
52-
... from urllib.request import urlopen
53-
... from urllib.parse import urlparse
54-
... # etc.
55-
... from collections import Counter, OrderedDict # backported to Py2.6
41+
:ref:`_list-standard-library-refactored`.) These are accessible through the following
42+
interface (as well as the previous mechanisms)::
43+
44+
from future.standard_library import install_aliases
45+
install_aliases()
46+
47+
from collections import UserDict, UserList, UserString
48+
import dbm.gnu
49+
from itertools import filterfalse, zip_longest
50+
from subprocess import getoutput, getstatusoutput
51+
from sys import intern
52+
import test.support
53+
from urllib.request import urlopen
54+
from urllib.parse import urlparse
55+
# etc.
56+
from collections import Counter, OrderedDict # backported to Py2.6
5657

5758

5859
What's new in version 0.13.2

0 commit comments

Comments
 (0)