[CMF-checkins] SVN: CMF/trunk/GenericSetup/utils.py Didn't mean to check that in.

Florent Guillaume fg at nuxeo.com
Wed Dec 28 21:04:22 EST 2005


Log message for revision 41051:
  Didn't mean to check that in.
  

Changed:
  U   CMF/trunk/GenericSetup/utils.py

-=-
Modified: CMF/trunk/GenericSetup/utils.py
===================================================================
--- CMF/trunk/GenericSetup/utils.py	2005-12-29 01:36:40 UTC (rev 41050)
+++ CMF/trunk/GenericSetup/utils.py	2005-12-29 02:04:20 UTC (rev 41051)
@@ -512,15 +512,8 @@
     def _importBody(self, body):
         """Import the object from the file body.
         """
-        from xml.parsers.expat import ExpatError
-        try:
-            node = parseString(body)
-        except ExpatError:
-            print 'error in', body
-            raise
+        self._importNode(parseString(body).documentElement)
 
-        self._importNode(node.documentElement)
-
     mime_type = 'text/xml'
 
     name = ''



More information about the CMF-checkins mailing list