diff options
| author | Tim Graham <timograham@gmail.com> | 2014-04-03 11:03:31 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-04-03 11:03:31 -0400 |
| commit | 0f6ea69e275fe5ed75479d69b0a233be9ae4fd76 (patch) | |
| tree | 4b2bc5ad59fced8ca8824d31a1a6485f15e6199b | |
| parent | 8f63849df28449e916336a11cbbe7abf8ca03d42 (diff) | |
Cleaned up string detection for a deprecation warning by using six.string_types.
| -rw-r--r-- | django/conf/urls/i18n.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 " |
