From: Matthias Klose Date: Sun, 5 Apr 2009 21:00:48 +0000 (+0000) Subject: - Issue #2703: SimpleXMLRPCDispatcher.__init__: Provide default values for X-Git-Tag: v2.7a1~1549 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5d58c831fa3b23960c9dfa78f7b9c62a31ce3e0;p=python - Issue #2703: SimpleXMLRPCDispatcher.__init__: Provide default values for new arguments introduced in 2.5. --- diff --git a/Lib/SimpleXMLRPCServer.py b/Lib/SimpleXMLRPCServer.py index e9bda9a1c9..967ac7e2bb 100644 --- a/Lib/SimpleXMLRPCServer.py +++ b/Lib/SimpleXMLRPCServer.py @@ -164,7 +164,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 0cff98c92a..b8d3883a86 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -689,6 +689,9 @@ Library - Issue #999042: The Python compiler now handles explict global statements correctly (should be assigned using STORE_GLOBAL opcode). +- Issue #2703: SimpleXMLRPCDispatcher.__init__: Provide default values for + new arguments introduced in 2.5. + Tools/Demos -----------