|
11 | 11 | It is used as follows:: |
12 | 12 |
|
13 | 13 | from __future__ import division, absolute_import, print_function |
14 | | - from future.builtins.types import bytes, dict, int, range, str |
| 14 | + from future.builtins import bytes, dict, int, range, str |
15 | 15 |
|
16 | 16 | to bring in the new semantics for these functions from Python 3. And |
17 | 17 | then, for example:: |
@@ -55,12 +55,12 @@ def append(self, item): |
55 | 55 | For more information: |
56 | 56 | --------------------- |
57 | 57 |
|
58 | | -- future.builtins.types.newbytes |
59 | | -- future.builtins.types.newdict |
60 | | -- future.builtins.types.newint |
61 | | -- future.builtins.types.newobject |
62 | | -- future.builtins.types.newrange |
63 | | -- future.builtins.types.newstr |
| 58 | +- future.types.newbytes |
| 59 | +- future.types.newdict |
| 60 | +- future.types.newint |
| 61 | +- future.types.newobject |
| 62 | +- future.types.newrange |
| 63 | +- future.types.newstr |
64 | 64 |
|
65 | 65 |
|
66 | 66 | Notes |
@@ -224,12 +224,12 @@ def issubset(list1, list2): |
224 | 224 | str = builtins.str |
225 | 225 | __all__ = [] |
226 | 226 | else: |
227 | | - from .newbytes import newbytes as bytes |
228 | | - from .newdict import newdict as dict |
229 | | - from .newint import newint as int |
230 | | - from .newlist import newlist as list |
231 | | - from .newrange import newrange as range |
232 | | - from .newobject import newobject as object |
233 | | - from .newstr import newstr as str |
234 | | - __all__ = ['bytes', 'dict', 'int', 'list', 'range', 'str'] |
| 227 | + from .newbytes import newbytes |
| 228 | + from .newdict import newdict |
| 229 | + from .newint import newint |
| 230 | + from .newlist import newlist |
| 231 | + from .newrange import newrange |
| 232 | + from .newobject import newobject |
| 233 | + from .newstr import newstr |
| 234 | + __all__ = ['newbytes', 'newdict', 'newint', 'newlist', 'newrange', 'newstr'] |
235 | 235 |
|
0 commit comments