mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Fixed python3 breakage introduced by c0a2388a1c4ead1afaec98e4ebc953a772ca3849.
This commit is contained in:
parent
da235c9a84
commit
bdca494464
@ -202,7 +202,7 @@ def activate(language):
|
|||||||
language and installs it as the current translation object for the current
|
language and installs it as the current translation object for the current
|
||||||
thread.
|
thread.
|
||||||
"""
|
"""
|
||||||
if isinstance(language, basestring):
|
if isinstance(language, six.string_types):
|
||||||
if language == 'zh-cn':
|
if language == 'zh-cn':
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
"The use of the language code 'zh-cn' is deprecated. "
|
"The use of the language code 'zh-cn' is deprecated. "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user