Make it less magic

[Imported from Trac: page Python3, version 12]
fijal 2020-08-04 16:53:05 +00:00
parent 6f21ed4574
commit e4cafd26fa

@ -58,7 +58,7 @@ And replace the `from builtins import *` variant, if any, with:
```#!python ```#!python
from future.utils import PY2 from future.utils import PY2
if 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 ### When things get complicated