mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Removed django.utils.encoding.StrAndUnicode class, deprecated in Django 1.5.
This commit is contained in:
@@ -188,18 +188,7 @@ The functions defined in this module share the following properties:
|
||||
=========================
|
||||
|
||||
.. module:: django.utils.encoding
|
||||
:synopsis: A series of helper classes and function to manage character encoding.
|
||||
|
||||
.. class:: StrAndUnicode
|
||||
|
||||
A class that derives ``__str__`` from ``__unicode__``.
|
||||
|
||||
On Python 2, ``__str__`` returns the output of ``__unicode__`` encoded as
|
||||
a UTF-8 bytestring. On Python 3, ``__str__`` returns the output of
|
||||
``__unicode__``.
|
||||
|
||||
Useful as a mix-in. If you support Python 2 and 3 with a single code base,
|
||||
you can inherit this mix-in and just define ``__unicode__``.
|
||||
:synopsis: A series of helper function to manage character encoding.
|
||||
|
||||
.. function:: python_2_unicode_compatible
|
||||
|
||||
|
||||
Reference in New Issue
Block a user