mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Refs #27753 -- Deprecated django.utils.encoding.force_text() and smart_text().
This commit is contained in:
parent
3bb6a4390c
commit
d55e882927
5 changed files with 54 additions and 2 deletions
|
|
@ -232,11 +232,15 @@ The functions defined in this module share the following properties:
|
|||
|
||||
.. function:: smart_text(s, encoding='utf-8', strings_only=False, errors='strict')
|
||||
|
||||
.. deprecated:: 3.0
|
||||
|
||||
Alias of :func:`force_str` for backwards compatibility, especially in code
|
||||
that supports Python 2.
|
||||
|
||||
.. function:: force_text(s, encoding='utf-8', strings_only=False, errors='strict')
|
||||
|
||||
.. deprecated:: 3.0
|
||||
|
||||
Alias of :func:`force_str` for backwards compatibility, especially in code
|
||||
that supports Python 2.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue