[Imported from Trac: page Python3, version 5]
parent
92aa91a030
commit
b6f24edd9d
11
Python3.md
11
Python3.md
|
@ -37,7 +37,16 @@ Then:
|
||||||
|
|
||||||
**Second**, run `futurize --write --both-stages --all-imports path/to/file.py`.
|
**Second**, run `futurize --write --both-stages --all-imports path/to/file.py`.
|
||||||
|
|
||||||
**Third**, replace the `from builtins import *` variant, if any, with:
|
**Third**, fix the imports (TODO this can probably be automated).
|
||||||
|
|
||||||
|
Delete this bit:
|
||||||
|
|
||||||
|
```#!python
|
||||||
|
from future import standard_library
|
||||||
|
standard_library.install_aliases()
|
||||||
|
```
|
||||||
|
|
||||||
|
And replace the `from builtins import *` variant, if any, with:
|
||||||
|
|
||||||
```#!python
|
```#!python
|
||||||
from future.utils import PY2
|
from future.utils import PY2
|
||||||
|
|
Loading…
Reference in a new issue