[Zope3-checkins] CVS: Zope3/lib/python/Zope/XMLPickle - XMLPickle.py:1.2

Fred L. Drake, Jr. fdrake@acm.org
Tue, 17 Sep 2002 22:22:15 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/XMLPickle
In directory cvs.zope.org:/tmp/cvs-serv17857

Modified Files:
	XMLPickle.py 
Log Message:
Use only the documented interface to Expat.


=== Zope3/lib/python/Zope/XMLPickle/XMLPickle.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/XMLPickle/XMLPickle.py:1.1	Tue Sep 17 06:59:48 2002
+++ Zope3/lib/python/Zope/XMLPickle/XMLPickle.py	Tue Sep 17 22:22:15 2002
@@ -16,7 +16,7 @@
 $Id$
 """
 
-import pyexpat
+from xml.parsers import expat
 from cStringIO import StringIO
 from cPickle import loads as pickle_loads
 from pickle import \
@@ -88,7 +88,7 @@
     """Create an object from serialized XML
     """
     handler = ppml.xmlPickler()
-    parser = pyexpat.ParserCreate()
+    parser = expat.ParserCreate()
     parser.CharacterDataHandler = handler.handle_data
     parser.StartElementHandler = handler.handle_starttag
     parser.EndElementHandler = handler.handle_endtag