churchyard / rpms / python38

Forked from rpms/python38 5 years ago
Clone
03b7fb2
Index: Modules/pyexpat.c
03b7fb2
===================================================================
03b7fb2
--- Modules/pyexpat.c	(revision 81539)
03b7fb2
+++ Modules/pyexpat.c	(working copy)
03b7fb2
@@ -415,6 +415,9 @@
03b7fb2
     PyObject *args;
03b7fb2
     PyObject *temp;
03b7fb2
 
03b7fb2
+    if (!have_handler(self, CharacterData))
03b7fb2
+        return -1;
03b7fb2
+
03b7fb2
     args = PyTuple_New(1);
03b7fb2
     if (args == NULL)
03b7fb2
         return -1;