[Zope3-checkins] SVN: Zope3/trunk/src/zope/i18n/__init__.py Moved
import to top, resolved XXX
Jim Fulton
jim at zope.com
Wed Jul 7 13:47:08 EDT 2004
Log message for revision 26172:
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.
-=-
Modified: Zope3/trunk/src/zope/i18n/__init__.py
===================================================================
--- Zope3/trunk/src/zope/i18n/__init__.py 2004-07-07 17:42:50 UTC (rev 26171)
+++ Zope3/trunk/src/zope/i18n/__init__.py 2004-07-07 17:47:08 UTC (rev 26172)
@@ -17,6 +17,7 @@
"""
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 @@
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:
More information about the Zope3-Checkins
mailing list