Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed python3 breakage introduced by c0a2388.

  • Loading branch information...
commit bdca4944647a734fab592ab08c6311e365231287 1 parent da235c9
Baptiste Mispelon bmispelon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/translation/trans_real.py
2  django/utils/translation/trans_real.py
View
@@ -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. "
Please sign in to comment.
Something went wrong with that request. Please try again.