diff options
| author | rowanv <rrvspam@gmail.com> | 2016-01-24 22:26:11 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-01 10:42:05 -0500 |
| commit | a6ef025dfb2a1d1bd23893408eef6d066fb506d9 (patch) | |
| tree | b29b3624a20cc65184c743102e0f5f620412105f /docs/topics/python3.txt | |
| parent | 8bf8d0e0ecc1805480deb94feb4675b09d3b3a95 (diff) | |
Fixed #26124 -- Added missing code formatting to docs headers.
Diffstat (limited to 'docs/topics/python3.txt')
| -rw-r--r-- | docs/topics/python3.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/topics/python3.txt b/docs/topics/python3.txt index bac69d785a..003dd0ebc5 100644 --- a/docs/topics/python3.txt +++ b/docs/topics/python3.txt @@ -131,8 +131,8 @@ and ``SafeText`` respectively. For forwards compatibility, the new names work as of Django 1.4.2. -:meth:`~object.__str__` and ` __unicode__()`_ methods ------------------------------------------------------ +``__str__()`` and ``__unicode__()`` methods +------------------------------------------- In Python 2, the object model specifies :meth:`~object.__str__` and ` __unicode__()`_ methods. If these methods exist, they must return @@ -370,8 +370,8 @@ Some modules were renamed in Python 3. The ``django.utils.six.moves`` module (based on the :mod:`six.moves module <six.moves>`) provides a compatible location to import them. -PY2 -~~~ +``PY2`` +~~~~~~~ If you need different code in Python 2 and Python 3, check :data:`six.PY2`:: @@ -383,8 +383,8 @@ function. .. module:: django.utils.six -Django customized version of six --------------------------------- +Django customized version of ``six`` +------------------------------------ The version of six bundled with Django (``django.utils.six``) includes a few customizations for internal use only. |
