diff options
Diffstat (limited to 'src/zope/i18n/__init__.py')
-rw-r--r-- | src/zope/i18n/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/zope/i18n/__init__.py b/src/zope/i18n/__init__.py index dd525ea..b737d00 100644 --- a/src/zope/i18n/__init__.py +++ b/src/zope/i18n/__init__.py @@ -16,14 +16,17 @@ import re from zope.component import queryUtility -from zope.i18nmessageid import MessageFactory, Message +from zope.i18nmessageid import Message +# MessageFactory is not used, but it might be here for BBB reasons, +# as it could be imported by other packages. +from zope.i18nmessageid import MessageFactory # noqa +from zope.i18n._compat import text_type from zope.i18n.config import ALLOWED_LANGUAGES from zope.i18n.interfaces import INegotiator from zope.i18n.interfaces import ITranslationDomain from zope.i18n.interfaces import IFallbackTranslationDomainFactory -text_type = str if bytes is not str else unicode # Set up regular expressions for finding interpolation variables in text. # NAME_RE must exactly match the expression of the same name in the |