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