[Python-checkins] cpython: Port #16012 fix: parameter parsing regression in pyexpat parser UseForeignDTD()
georg.brandl
python-checkins at python.org
Sat Sep 29 09:27:41 CEST 2012
http://hg.python.org/cpython/rev/b907f99272c5
changeset: 79229:b907f99272c5
parent: 79135:b356eab13d86
user: Georg Brandl <georg at python.org>
date: Mon Sep 24 13:41:52 2012 +0200
summary:
Port #16012 fix: parameter parsing regression in pyexpat parser UseForeignDTD() method.
files:
Misc/NEWS | 9 ++++++++-
Modules/pyexpat.c | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,12 @@
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 @@
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 @@
- _decimal module: use only C 89 style comments.
+
What's New in Python 3.3.0 Release Candidate 2?
===============================================
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1035,7 +1035,7 @@
{
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) {
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list