commit | a5d58c831fa3b23960c9dfa78f7b9c62a31ce3e0 | [log] [tgz] |
---|---|---|
author | Matthias Klose <doko@ubuntu.com> | Sun Apr 05 21:00:48 2009 +0000 |
committer | Matthias Klose <doko@ubuntu.com> | Sun Apr 05 21:00:48 2009 +0000 |
tree | 1a44529939f757867b29388e2c80ad53ed270151 | |
parent | 29c6a281b1d4001e2bbe58780846bd228279f8a9 [diff] |
- 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 e9bda9a..967ac7e 100644 --- a/Lib/SimpleXMLRPCServer.py +++ b/Lib/SimpleXMLRPCServer.py
@@ -164,7 +164,7 @@ 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