Kaydet (Commit) bdca4944 authored tarafından Baptiste Mispelon's avatar Baptiste Mispelon

Fixed python3 breakage introduced by c0a2388a.

üst da235c9a
......@@ -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. "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment