diff options
author | Jim Fulton <jim@zope.com> | 2004-07-08 19:40:41 +0000 |
---|---|---|
committer | Jim Fulton <jim@zope.com> | 2004-07-08 19:40:41 +0000 |
commit | b1a1506d562f35d63aaa2d8b9ce6fd853d16bc36 (patch) | |
tree | 55275b9608e766d1feeccc8af0daf127b706a1c7 | |
parent | 8c73fd6a1d6505bddc4838680a7591a24b441c4f (diff) | |
download | zope-i18n-b1a1506d562f35d63aaa2d8b9ce6fd853d16bc36.tar.gz |
Merged from trunk:
r26172 | jim | 2004-07-07 13:47:08 -0400 (Wed, 07 Jul 2004) | 6 lines
Moved import to top, resolved XXX
This import had to be delayed before due to import dependencies btween
i18n and zope.exceptions, which have since been fixed.
-rw-r--r-- | __init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/__init__.py b/__init__.py index 2e5ce47..f0ce804 100644 --- a/__init__.py +++ b/__init__.py @@ -17,6 +17,7 @@ $Id$ """ import re import warnings +from zope.component import queryUtility from zope.i18nmessageid import MessageIDFactory, MessageID from zope.i18n.interfaces import ITranslationDomain @@ -38,8 +39,6 @@ def _translate(msgid, domain=None, mapping=None, context=None, default = msgid.default mapping = msgid.mapping - # XXX we shouldn't need this import here - from zope.component import queryUtility util = queryUtility(ITranslationDomain, domain) if util is None: |