mirror of
https://github.com/django/django.git
synced 2025-09-21 09:49:53 +00:00
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
This commit is contained in:
parent
f6acd1d271
commit
7b2f2e74ad
213 changed files with 574 additions and 763 deletions
|
@ -408,7 +408,7 @@ def unescape_string_literal(s):
|
|||
return s[1:-1].replace(r'\%s' % quote, quote).replace(r'\\', '\\')
|
||||
|
||||
|
||||
@keep_lazy(six.text_type, SafeText)
|
||||
@keep_lazy(str, SafeText)
|
||||
def slugify(value, allow_unicode=False):
|
||||
"""
|
||||
Convert to ASCII if 'allow_unicode' is False. Convert spaces to hyphens.
|
||||
|
@ -441,4 +441,4 @@ def _format_lazy(format_string, *args, **kwargs):
|
|||
return format_string.format(*args, **kwargs)
|
||||
|
||||
|
||||
format_lazy = lazy(_format_lazy, six.text_type)
|
||||
format_lazy = lazy(_format_lazy, str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue