summaryrefslogtreecommitdiff
path: root/src/zope/i18n/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/i18n/__init__.py')
-rw-r--r--src/zope/i18n/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zope/i18n/__init__.py b/src/zope/i18n/__init__.py
index aed9ded..b737d00 100644
--- a/src/zope/i18n/__init__.py
+++ b/src/zope/i18n/__init__.py
@@ -17,15 +17,16 @@ import re
from zope.component import queryUtility
from zope.i18nmessageid import Message
-# I expect that MessageFactory might be there for BBB reasons, but not sure.
+# 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