Skip to content

Commit

Permalink
DOC : fixed section hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Jun 10, 2014
1 parent b644c4e commit a5206eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/devel/portable_code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ recommended solutions. It is not a complete guide to Python 2 and 3
compatibility.

Welcome to the ``__future__``
-----------------------------
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

Expand All @@ -26,7 +26,7 @@ gets used *a lot*::
import six

Finding places to use six
-------------------------
^^^^^^^^^^^^^^^^^^^^^^^^^

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

The dreaded ``\u`` escapes
--------------------------
^^^^^^^^^^^^^^^^^^^^^^^^^^

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

Iteration
---------
^^^^^^^^^

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

Numpy-specific things
---------------------
^^^^^^^^^^^^^^^^^^^^^

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

0 comments on commit a5206eb

Please sign in to comment.