mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Merged revisions 86051 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86051 | benjamin.peterson | 2010-10-31 13:13:04 -0500 (Sun, 31 Oct 2010) | 1 line more fun with string exceptions ........
This commit is contained in:
parent
bdf5effc6c
commit
af577cbb71
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class Math:
|
||||||
elif method == 'add':
|
elif method == 'add':
|
||||||
return params[0] + params[1]
|
return params[0] + params[1]
|
||||||
else:
|
else:
|
||||||
raise 'bad method'
|
raise ValueError('bad method')
|
||||||
|
|
||||||
server = SimpleXMLRPCServer(("localhost", 8000))
|
server = SimpleXMLRPCServer(("localhost", 8000))
|
||||||
server.register_introspection_functions()
|
server.register_introspection_functions()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue