Skip to content

Commit 218f6d8

Browse files
committed
Replaced smart_unicode() with smart_text()
- Legacy-Id: 16311
1 parent 3ec7e86 commit 218f6d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/dbtemplate/template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from django.template.loaders.base import Loader as BaseLoader
99
from django.template.base import Template as DjangoTemplate, TemplateEncodingError
1010
from django.template.exceptions import TemplateDoesNotExist
11-
from django.utils.encoding import smart_unicode
11+
from django.utils.encoding import smart_text
1212

1313
from ietf.dbtemplate.models import DBTemplate
1414

@@ -21,7 +21,7 @@ class Template(object):
2121

2222
def __init__(self, template_string, origin=None, name='<Unknown Template>'):
2323
try:
24-
template_string = smart_unicode(template_string)
24+
template_string = smart_text(template_string)
2525
except UnicodeDecodeError:
2626
raise TemplateEncodingError("Templates can only be constructed from unicode or UTF-8 strings.")
2727
self.template_string = string.Template(template_string)

0 commit comments

Comments
 (0)