[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/i18n/__init__.py Merged from trunk:

Jim Fulton jim at zope.com
Thu Jul 8 15:40:41 EDT 2004


Log message for revision 26223:
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.





-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/__init__.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/__init__.py	2004-07-08 19:38:37 UTC (rev 26222)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/__init__.py	2004-07-08 19:40:41 UTC (rev 26223)
@@ -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