summaryrefslogtreecommitdiffstats
path: root/Lib/xmlrpc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-31 18:15:00 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-31 18:15:00 (GMT)
commitaf577cbb718c31994df5185ece03e7bdeba2959a (patch)
tree50ca1f4ec0e236bcc08c0da5a7b3a4431eafcbc7 /Lib/xmlrpc
parentbdf5effc6cd1d66771ff14842aab9484fc0880e9 (diff)
downloadcpython-af577cbb718c31994df5185ece03e7bdeba2959a.zip
cpython-af577cbb718c31994df5185ece03e7bdeba2959a.tar.gz
cpython-af577cbb718c31994df5185ece03e7bdeba2959a.tar.bz2
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py
index 04820bf..1cd45a9 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()