From 0f6ea69e275fe5ed75479d69b0a233be9ae4fd76 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 3 Apr 2014 11:03:31 -0400 Subject: [PATCH] Cleaned up string detection for a deprecation warning by using six.string_types. --- django/conf/urls/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "