Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a3d29e8

Browse files
committed
Merged revisions 71268 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 638805f commit a3d29e8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/xmlrpc/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class SimpleXMLRPCDispatcher:
159159
reason to instantiate this class directly.
160160
"""
161161

162-
def __init__(self, allow_none, encoding):
162+
def __init__(self, allow_none=False, encoding=None):
163163
self.funcs = {}
164164
self.instance = None
165165
self.allow_none = allow_none

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Core and Builtins
1515
Library
1616
-------
1717

18+
- Issue #2703: SimpleXMLRPCDispatcher.__init__: Provide default values for
19+
new arguments introduced in 2.5.
20+
1821

1922
What's New in Python 3.1 alpha 2?
2023
=================================

0 commit comments

Comments
 (0)