micro refactoring

parent f49d7b7c
...@@ -262,7 +262,7 @@ class MessageCatalog(LanguageManager, ObjectManager, SimpleItem): ...@@ -262,7 +262,7 @@ class MessageCatalog(LanguageManager, ObjectManager, SimpleItem):
If a default is provided, use it instead of the message id If a default is provided, use it instead of the message id
as a translation for unknown messages. as a translation for unknown messages.
""" """
if not isinstance(message, (str, unicode)): if not isinstance(message, basestring):
raise TypeError, 'only strings can be translated.' raise TypeError, 'only strings can be translated.'
message = message.strip() message = message.strip()
......
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