From bdca4944647a734fab592ab08c6311e365231287 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Mon, 4 Nov 2013 23:57:43 +0100 Subject: [PATCH] Fixed python3 breakage introduced by c0a2388a1c4ead1afaec98e4ebc953a772ca3849. --- django/utils/translation/trans_real.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py index 54c5f73d15..78facc0aad 100644 --- a/django/utils/translation/trans_real.py +++ b/django/utils/translation/trans_real.py @@ -202,7 +202,7 @@ def activate(language): language and installs it as the current translation object for the current thread. """ - if isinstance(language, basestring): + if isinstance(language, six.string_types): if language == 'zh-cn': warnings.warn( "The use of the language code 'zh-cn' is deprecated. "