mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
change smart_unicode to smart_text in utils/feedfunctions.py
This commit is contained in:
parent
46f8c024b6
commit
2d62e80344
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ import random
|
|||
import warnings
|
||||
from django.core.mail import mail_admins
|
||||
from django.utils.translation import ungettext
|
||||
from django.utils.encoding import smart_unicode
|
||||
from django.utils.encoding import smart_text
|
||||
from utils import log as logging
|
||||
|
||||
|
||||
|
@ -49,9 +49,9 @@ def timelimit(timeout):
|
|||
def utf8encode(tstr):
|
||||
""" Encodes a unicode string in utf-8
|
||||
"""
|
||||
msg = "utf8encode is deprecated. Use django.utils.encoding.smart_unicode instead."
|
||||
msg = "utf8encode is deprecated. Use django.utils.encoding.smart_text instead."
|
||||
warnings.warn(msg, DeprecationWarning)
|
||||
return smart_unicode(tstr)
|
||||
return smart_text(tstr)
|
||||
|
||||
# From: http://www.poromenos.org/node/87
|
||||
def levenshtein_distance(first, second):
|
||||
|
|
Loading…
Add table
Reference in a new issue