]> granicus.if.org Git - python/commitdiff
- Issue #2703: SimpleXMLRPCDispatcher.__init__: Provide default values for
authorMatthias Klose <doko@ubuntu.com>
Sun, 5 Apr 2009 21:00:48 +0000 (21:00 +0000)
committerMatthias Klose <doko@ubuntu.com>
Sun, 5 Apr 2009 21:00:48 +0000 (21:00 +0000)
  new arguments introduced in 2.5.

Lib/SimpleXMLRPCServer.py
Misc/NEWS

index e9bda9a1c9804a8cd192253d2c286db4ce2eafef..967ac7e2bbb515213a13200d9475a3c668237aa2 100644 (file)
@@ -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
index 0cff98c92a1a653f3f2d5c6ab76db1c28318bb89..b8d3883a86f010b305cc78e69a50bae330546b23 100644 (file)
--- 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
 -----------