Make it less magic
[Imported from Trac: page Python3, version 12]
parent
6f21ed4574
commit
e4cafd26fa
|
@ -58,7 +58,7 @@ And replace the `from builtins import *` variant, if any, with:
|
|||
```#!python
|
||||
from future.utils import PY2
|
||||
if PY2:
|
||||
from builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, int, list, object, range, str, max, min # noqa: F401
|
||||
from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, int, list, object, range, str, max, min # noqa: F401
|
||||
```
|
||||
|
||||
### When things get complicated
|
||||
|
|
Loading…
Reference in a new issue