diff --git a/django/conf/urls/i18n.py b/django/conf/urls/i18n.py index dbddcc0554..6e776a2ecd 100644 --- a/django/conf/urls/i18n.py +++ b/django/conf/urls/i18n.py @@ -13,7 +13,7 @@ def i18n_patterns(prefix, *args): function. This may only be used in the root URLconf, not in an included URLconf. """ - if isinstance(prefix, (six.text_type, str)): + if isinstance(prefix, six.string_types): warnings.warn( "Calling i18n_patterns() with the `prefix` argument and with tuples " "instead of django.conf.urls.url() instances is deprecated and "