Skip to content

Commit 71a9ffa

Browse files
committed
Changed allow_lazy to the @keep_lazy decorator.
- Legacy-Id: 14674
1 parent 8b6a71c commit 71a9ffa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/utils/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import debug # pyflakes:ignore
1313

14+
@keep_lazy(six.text_type)
1415
def xslugify(value):
1516
"""
1617
Converts to ASCII. Converts spaces to hyphens. Removes characters that
@@ -21,7 +22,6 @@ def xslugify(value):
2122
value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore').decode('ascii')
2223
value = re.sub('[^\w\s/-]', '', value).strip().lower()
2324
return mark_safe(re.sub('[-\s/]+', '-', value))
24-
xslugify = keep_lazy(xslugify, six.text_type)
2525

2626
def strip_prefix(text, prefix):
2727
if text.startswith(prefix):

0 commit comments

Comments
 (0)