Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 5408:e46ce04d5bbc
Python 3 preparation: update xmlrpclib / SimpleXMLRPCServer imports.
New roundup/anypy/xmlrpc_.py added. Manual patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Wed, 25 Jul 2018 00:16:00 +0000 |
| parents | 23b8e6067f7c |
| children | c749d6795bc2 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Wed Jul 25 00:14:40 2018 +0000 +++ b/roundup/cgi/client.py Wed Jul 25 00:16:00 2018 +0000 @@ -42,12 +42,12 @@ get_cookie_date from roundup.anypy import http_ from roundup.anypy import urllib_ +from roundup.anypy import xmlrpc_ from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email.MIMEMultipart import MIMEMultipart import roundup.anypy.email_ -import xmlrpclib def initialiseSecurity(security): '''Create some Permissions and Roles on the security object @@ -466,8 +466,8 @@ except (Unauthorised, UsageError) as msg: # report exception back to server exc_type, exc_value, exc_tb = sys.exc_info() - output = xmlrpclib.dumps( - xmlrpclib.Fault(1, "%s:%s" % (exc_type, exc_value)), + output = xmlrpc_.client.dumps( + xmlrpc_.client.Fault(1, "%s:%s" % (exc_type, exc_value)), allow_none=True) csrf_ok = False # we had an error, failed check
