[Zope3-checkins] CVS: Zope3/src/zope/i18n - locales.py:1.2
Fred L. Drake, Jr.
fred@zope.com
Mon, 6 Jan 2003 11:35:14 -0500
Update of /cvs-repository/Zope3/src/zope/i18n
In directory cvs.zope.org:/tmp/cvs-serv9373
Modified Files:
locales.py
Log Message:
ICUXMLLocaleFactory.__init__():
We don't always want the firstChild, but we do want
documentElement. This fixes some AttributeErrors from the test
suite.
=== Zope3/src/zope/i18n/locales.py 1.1 => 1.2 ===
--- Zope3/src/zope/i18n/locales.py:1.1 Sun Jan 5 15:19:37 2003
+++ Zope3/src/zope/i18n/locales.py Mon Jan 6 11:35:11 2003
@@ -721,7 +721,7 @@
def __init__(self, path):
"""Initialize factory."""
self._path = path
- self._data = parseXML(path).firstChild
+ self._data = parseXML(path).documentElement
def _getText(self, nodelist):
rc = ""