torsava / rpms / python3

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