Refs #27753 -- Removed django.utils.six.

This commit is contained in:
Tim Graham 2019-02-04 19:53:27 -05:00
parent efe28d3f56
commit 41384812ef
7 changed files with 8 additions and 900 deletions

View file

@ -191,15 +191,6 @@ The functions defined in this module share the following properties:
.. module:: django.utils.encoding
:synopsis: A series of helper functions to manage character encoding.
.. function:: python_2_unicode_compatible
A decorator that defines ``__unicode__`` and ``__str__`` methods under
Python 2. Under Python 3 it does nothing.
To support Python 2 and 3 with a single code base, define a ``__str__``
method returning text (use ``six.text_type()`` if you're doing some
casting) and apply this decorator to the class.
.. function:: smart_text(s, encoding='utf-8', strings_only=False, errors='strict')
Returns a ``str`` object representing arbitrary object ``s``. Treats