908bb70
Index: Modules/pyexpat.c
908bb70
===================================================================
908bb70
--- Modules/pyexpat.c	(revision 81539)
908bb70
+++ Modules/pyexpat.c	(working copy)
908bb70
@@ -415,6 +415,9 @@
908bb70
     PyObject *args;
908bb70
     PyObject *temp;
908bb70
 
908bb70
+    if (!have_handler(self, CharacterData))
908bb70
+        return -1;
908bb70
+
908bb70
     args = PyTuple_New(1);
908bb70
     if (args == NULL)
908bb70
         return -1;