]> granicus.if.org Git - python/commitdiff
Port #16012 fix: parameter parsing regression in pyexpat parser UseForeignDTD() method.
authorGeorg Brandl <georg@python.org>
Mon, 24 Sep 2012 11:41:52 +0000 (13:41 +0200)
committerGeorg Brandl <georg@python.org>
Mon, 24 Sep 2012 11:41:52 +0000 (13:41 +0200)
Misc/NEWS
Modules/pyexpat.c

index bdab245155194bbfb8116c36e996700ae28ae519..baa9fcd7a6d079e8a2a16dc86560c87124e9f543 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,12 @@ Core and Builtins
 Library
 -------
 
+Extension Modules
+-----------------
+
+- Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD()
+  method doesn't require an argument again.
+
 
 What's New in Python 3.3.0 Release Candidate 3?
 ===============================================
@@ -22,7 +28,7 @@ What's New in Python 3.3.0 Release Candidate 3?
 Core and Builtins
 -----------------
 
-- Issue #15900: Fixed reference leak in PyUnicode_TranslateCharmap().
+- Issue #15900: Fix reference leak in PyUnicode_TranslateCharmap().
 
 - Issue #15926: Fix crash after multiple reinitializations of the interpreter.
 
@@ -59,6 +65,7 @@ Extension Modules
 
 - _decimal module: use only C 89 style comments.
 
+
 What's New in Python 3.3.0 Release Candidate 2?
 ===============================================
 
index bd2726877f43e559d666636c59b462ad5926fba7..3f59f0fdc15c12cd6c98349a3538e9d77ca6600a 100644 (file)
@@ -1035,7 +1035,7 @@ xmlparse_UseForeignDTD(xmlparseobject *self, PyObject *args)
 {
     int flag = 1;
     enum XML_Error rc;
-    if (!PyArg_ParseTuple(args, "p:UseForeignDTD", &flag))
+    if (!PyArg_ParseTuple(args, "|p:UseForeignDTD", &flag))
         return NULL;
     rc = XML_UseForeignDTD(self->itself, flag ? XML_TRUE : XML_FALSE);
     if (rc != XML_ERROR_NONE) {