##// END OF EJS Templates
Fix broken link in documentation
farisachugthai -
Show More
@@ -1,32 +1,32 b''
1 :orphan:
1 :orphan:
2
2
3 Writing code for Python 2 and 3
3 Writing code for Python 2 and 3
4 ===============================
4 ===============================
5
5
6 .. module:: IPython.utils.py3compat
6 .. module:: IPython.utils.py3compat
7 :synopsis: Python 2 & 3 compatibility helpers
7 :synopsis: Python 2 & 3 compatibility helpers
8
8
9
9
10 IPython 6 requires Python 3, so our compatibility module
10 IPython 6 requires Python 3, so our compatibility module
11 ``IPython.utils.py3compat`` is deprecated and will be removed in a future
11 ``IPython.utils.py3compat`` is deprecated and will be removed in a future
12 version. In most cases, we recommend you use the `six module
12 version. In most cases, we recommend you use the `six module
13 <https://pythonhosted.org/six/>`__ to support compatible code. This is widely
13 <https://six.readthedocs.io/>`__ to support compatible code. This is widely
14 used by other projects, so it is familiar to many developers and thoroughly
14 used by other projects, so it is familiar to many developers and thoroughly
15 battle-tested.
15 battle-tested.
16
16
17 Our ``py3compat`` module provided some more specific unicode conversions than
17 Our ``py3compat`` module provided some more specific unicode conversions than
18 those offered by ``six``. If you want to use these, copy them into your own code
18 those offered by ``six``. If you want to use these, copy them into your own code
19 from IPython 5.x. Do not rely on importing them from IPython, as the module may
19 from IPython 5.x. Do not rely on importing them from IPython, as the module may
20 be removed in the future.
20 be removed in the future.
21
21
22 .. seealso::
22 .. seealso::
23
23
24 `Porting Python 2 code to Python 3 <https://docs.python.org/3/howto/pyporting.html>`_
24 `Porting Python 2 code to Python 3 <https://docs.python.org/3/howto/pyporting.html>`_
25 Official information in the Python docs.
25 Official information in the Python docs.
26
26
27 `Python-Modernize <http://python-modernize.readthedocs.io/en/latest/>`_
27 `Python-Modernize <https://python-modernize.readthedocs.io/en/latest/>`_
28 A tool which helps make code compatible with Python 3.
28 A tool which helps make code compatible with Python 3.
29
29
30 `Python-Future <http://python-future.org/>`_
30 `Python-Future <https://python-future.org/>`_
31 Another compatibility tool, which focuses on writing code for Python 3 and
31 Another compatibility tool, which focuses on writing code for Python 3 and
32 making it work on Python 2.
32 making it work on Python 2.
General Comments 0
You need to be logged in to leave comments. Login now