[XML-SIG] PyXML 0.5.5 release

Juergen Hermann Juergen Hermann" <jhe@webde-ag.de
Tue, 06 Jun 2000 10:45:02 +0100


On Mon, 5 Jun 2000 20:05:01 -0400, Andrew Kuchling wrote:

>I've made a quickie 0.5.5 release, containing 3 changes:
>1) Updated version of qp_xdml.py, pointed out by Greg Stein
>2) Patches to pyexpat.c, for correct compilation on Windows
>3) Bugfix to dom/core.py, to escape ' in attribute values.

This is the quickie fix to get it to build with VC++6 and the RELEASE 
version of Python 1.5.2. :)


--- pyexpat.c.orig      Mon Jun 05 23:48:06 2000
+++ pyexpat.c   Tue Jun 06 08:41:13 2000
@@ -471,7 +471,7 @@
         int i;
         xmlparseobject *self;

-        self = PyObject_New(xmlparseobject, &Xmlparsetype);
+        self = PyObject_NEW(xmlparseobject, &Xmlparsetype);
         if (self == NULL)
                 return NULL;

@@ -512,7 +512,11 @@
         for( i=0; handler_info[i].name!=NULL; i++ ){
                 Py_XDECREF( self->handlers[i] );
         }
-        PyObject_Del(self);
+#ifndef PyObject_DEL
+        free(self);
+#else
+        PyObject_DEL(self);
+#endif
 }

 static int handlername2int( const char *name ){