From: Matthias Klose Date: Tue, 7 Apr 2009 13:13:10 +0000 (+0000) Subject: Merged revisions 71268 via svnmerge from X-Git-Tag: v3.1b1~356 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3d29e86611cccb67e59a6f75bb2163f40e4e19e;p=python 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. ........ --- diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py index f84176fc42..60f992be05 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 cbf6d7547d..aaf2b30abd 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -15,6 +15,9 @@ Core and Builtins Library ------- +- Issue #2703: SimpleXMLRPCDispatcher.__init__: Provide default values for + new arguments introduced in 2.5. + What's New in Python 3.1 alpha 2? =================================