diff Lib/xmlrpc/server.py @ 65834:41d5d3d7da21 3.1

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 ........
author Benjamin Peterson <benjamin@python.org>
date Sun, 31 Oct 2010 18:15:00 +0000
parents 44a7507f6db5
children bf94b6a73fc8 3c9232a684ae
line wrap: on
line diff
--- a/Lib/xmlrpc/server.py	Sun Oct 31 16:55:05 2010 +0000
+++ b/Lib/xmlrpc/server.py	Sun Oct 31 18:15:00 2010 +0000
@@ -67,7 +67,7 @@
         elif method == 'add':
             return params[0] + params[1]
         else:
-            raise 'bad method'
+            raise ValueError('bad method')
 
 server = SimpleXMLRPCServer(("localhost", 8000))
 server.register_introspection_functions()