diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-31 18:15:00 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-31 18:15:00 +0000 |
commit | 669e98a71e3ef43fb7cab605356fbc00cd9b5e4d (patch) | |
tree | 548459d3aa65869fd55dd0d147de84ce662c7020 /Lib/xmlrpc | |
parent | c5272f153ef279fc6768646d5fb06efdfaa757d9 (diff) | |
download | cpython-669e98a71e3ef43fb7cab605356fbc00cd9b5e4d.tar.gz |
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
........
Diffstat (limited to 'Lib/xmlrpc')
-rw-r--r-- | Lib/xmlrpc/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py index 04820bfc56..1cd45a9596 100644 --- a/Lib/xmlrpc/server.py +++ b/Lib/xmlrpc/server.py @@ -67,7 +67,7 @@ class Math: elif method == 'add': return params[0] + params[1] else: - raise 'bad method' + raise ValueError('bad method') server = SimpleXMLRPCServer(("localhost", 8000)) server.register_introspection_functions() |