Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09bdd3a

Browse files
tacaswelltobias47n9e
authored andcommitted
DOC : fixed section hierarchy
1 parent 2cd9e0a commit 09bdd3a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/devel/portable_code.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ recommended solutions. It is not a complete guide to Python 2 and 3
1010
compatibility.
1111

1212
Welcome to the ``__future__``
13-
-----------------------------
13+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414

1515
The top of every `.py` file should include the following::
1616

@@ -26,7 +26,7 @@ gets used *a lot*::
2626
import six
2727

2828
Finding places to use six
29-
-------------------------
29+
^^^^^^^^^^^^^^^^^^^^^^^^^
3030

3131
The only way to make sure code works on both Python 2 and 3 is to make sure it
3232
is covered by unit tests.
@@ -41,7 +41,7 @@ The `six <http://pythonhosted.org/six/>`_ documentation serves as a
4141
good reference for the sorts of things that need to be updated.
4242

4343
The dreaded ``\u`` escapes
44-
--------------------------
44+
^^^^^^^^^^^^^^^^^^^^^^^^^^
4545

4646
When `from __future__ import unicode_literals` is used, all string
4747
literals (not preceded with a `b`) will become unicode literals.
@@ -86,7 +86,7 @@ of that and still support Python 2::
8686
'\\u'
8787

8888
Iteration
89-
---------
89+
^^^^^^^^^
9090

9191
The behavior of the methods for iterating over the items, values and
9292
keys of a dictionary has changed in Python 3. Additionally, other
@@ -111,7 +111,7 @@ Python 2 Python 3 six
111111
============================== ============================== ==============================
112112

113113
Numpy-specific things
114-
---------------------
114+
^^^^^^^^^^^^^^^^^^^^^
115115

116116
When specifying dtypes, all strings must be byte strings on Python 2
117117
and unicode strings on Python 3. The best way to handle this is to

0 commit comments

Comments
 (0)