diff --git a/product/Localizer/MessageCatalog.py b/product/Localizer/MessageCatalog.py index 173fc070406d7ad60b1fcc16c142c16b1583b219..8488ff6b1c40c033ef77cbd3f6e32970f1e2920f 100644 --- a/product/Localizer/MessageCatalog.py +++ b/product/Localizer/MessageCatalog.py @@ -262,7 +262,7 @@ class MessageCatalog(LanguageManager, ObjectManager, SimpleItem): If a default is provided, use it instead of the message id as a translation for unknown messages. """ - if not isinstance(message, (str, unicode)): + if not isinstance(message, basestring): raise TypeError, 'only strings can be translated.' message = message.strip()