Mercurial > cpython-lru_cache-weakref
diff Lib/SimpleXMLRPCServer.py @ 37042:7ada16a14968
Remove sys.exc_type, sys.exc_value, sys.exc_traceback
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 17 Mar 2006 05:49:33 +0000 |
| parents | 686306a67e9b |
| children | f731859e9b3b |
line wrap: on
line diff
--- a/Lib/SimpleXMLRPCServer.py Fri Mar 17 05:44:46 2006 +0000 +++ b/Lib/SimpleXMLRPCServer.py Fri Mar 17 05:49:33 2006 +0000 @@ -261,7 +261,7 @@ except: # report exception back to server response = xmlrpclib.dumps( - xmlrpclib.Fault(1, "%s:%s" % (sys.exc_type, sys.exc_value)), + xmlrpclib.Fault(1, "%s:%s" % sys.exc_info()[:2]), encoding=self.encoding, allow_none=self.allow_none, ) @@ -362,7 +362,7 @@ except: results.append( {'faultCode' : 1, - 'faultString' : "%s:%s" % (sys.exc_type, sys.exc_value)} + 'faultString' : "%s:%s" % sys.exc_info()[:2]} ) return results
