mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-16 03:23:18 +03:00
Use force_text from compat
This commit is contained in:
parent
3e20b0110c
commit
c9d4497d81
|
@ -2,13 +2,12 @@
|
||||||
Utility functions to return a formatted name and description for a given view.
|
Utility functions to return a formatted name and description for a given view.
|
||||||
"""
|
"""
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
import re
|
||||||
|
|
||||||
from django.utils.html import escape
|
from django.utils.html import escape
|
||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
from django.utils.encoding import force_text
|
|
||||||
|
|
||||||
from rest_framework.compat import apply_markdown
|
from rest_framework.compat import apply_markdown, force_text
|
||||||
import re
|
|
||||||
|
|
||||||
|
|
||||||
def remove_trailing_string(content, trailing):
|
def remove_trailing_string(content, trailing):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user