@@ -10,7 +10,7 @@ recommended solutions. It is not a complete guide to Python 2 and 3
1010compatibility.
1111
1212Welcome to the ``__future__ ``
13- -----------------------------
13+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414
1515The top of every `.py ` file should include the following::
1616
@@ -26,7 +26,7 @@ gets used *a lot*::
2626 import six
2727
2828Finding places to use six
29- -------------------------
29+ ^^^^^^^^^^^^^^^^^^^^^^^^^
3030
3131The only way to make sure code works on both Python 2 and 3 is to make sure it
3232is covered by unit tests.
@@ -41,7 +41,7 @@ The `six <http://pythonhosted.org/six/>`_ documentation serves as a
4141good reference for the sorts of things that need to be updated.
4242
4343The dreaded ``\u `` escapes
44- --------------------------
44+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
4545
4646When `from __future__ import unicode_literals ` is used, all string
4747literals (not preceded with a `b `) will become unicode literals.
@@ -86,7 +86,7 @@ of that and still support Python 2::
8686 '\\u'
8787
8888Iteration
89- ---------
89+ ^^^^^^^^^
9090
9191The behavior of the methods for iterating over the items, values and
9292keys of a dictionary has changed in Python 3. Additionally, other
@@ -111,7 +111,7 @@ Python 2 Python 3 six
111111============================== ============================== ==============================
112112
113113Numpy-specific things
114- ---------------------
114+ ^^^^^^^^^^^^^^^^^^^^^
115115
116116When specifying dtypes, all strings must be byte strings on Python 2
117117and unicode strings on Python 3. The best way to handle this is to
0 commit comments