From 1478f5c36ce97eb0d4c8f5aca0f31751bf30bc5d Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Tue, 7 Apr 2009 14:48:10 +0000 Subject: [PATCH] Merged revisions 71355 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r71355 | matthias.klose | 2009-04-07 15:13:10 +0200 (Di, 07 Apr 2009) | 10 lines Merged revisions 71268 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r71268 | matthias.klose | 2009-04-05 23:00:48 +0200 (So, 05 Apr 2009) | 3 lines - Issue #2703: SimpleXMLRPCDispatcher.__init__: Provide default values for new arguments introduced in 2.5. ........ ................ --- Lib/xmlrpc/server.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py index 4ddc0049d670..665da30321b8 100644 --- a/Lib/xmlrpc/server.py +++ b/Lib/xmlrpc/server.py @@ -159,7 +159,7 @@ class SimpleXMLRPCDispatcher: reason to instantiate this class directly. """ - def __init__(self, allow_none, encoding): + def __init__(self, allow_none=False, encoding=None): self.funcs = {} self.instance = None self.allow_none = allow_none diff --git a/Misc/NEWS b/Misc/NEWS index 313bf211e3be..1d4ddf0f5c34 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -92,6 +92,9 @@ Library - Issue #4524: distutils build_script command failed with --with-suffix=3. Initial patch by Amaury Forgeot d'Arc. +- Issue #2703: SimpleXMLRPCDispatcher.__init__: Provide default values for + new arguments introduced in 2.5. + Build ----- -- 2.47.3