[Python-checkins] r86051 - python/branches/py3k/Lib/xmlrpc/server.py
benjamin.peterson
python-checkins at python.org
Sun Oct 31 19:13:04 CET 2010
Author: benjamin.peterson
Date: Sun Oct 31 19:13:04 2010
New Revision: 86051
Log:
more fun with string exceptions
Modified:
python/branches/py3k/Lib/xmlrpc/server.py
Modified: python/branches/py3k/Lib/xmlrpc/server.py
==============================================================================
--- python/branches/py3k/Lib/xmlrpc/server.py (original)
+++ python/branches/py3k/Lib/xmlrpc/server.py Sun Oct 31 19:13:04 2010
@@ -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()
More information about the Python-checkins
mailing list