From a6ef025dfb2a1d1bd23893408eef6d066fb506d9 Mon Sep 17 00:00:00 2001 From: rowanv Date: Sun, 24 Jan 2016 22:26:11 +0100 Subject: Fixed #26124 -- Added missing code formatting to docs headers. --- docs/topics/python3.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/topics/python3.txt') 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 `) 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. -- cgit v1.3