Mercurial > p > roundup > code
changeset 5552:db10c0a1f338
Fix xmlrpc module selection for incomplete backport (issue2551010).
| author | Gabi <gabriele.roeger@unibas.ch> |
|---|---|
| date | Sun, 11 Nov 2018 17:04:59 +0000 |
| parents | 0452fc26ab0f |
| children | a75285092156 |
| files | roundup/anypy/xmlrpc_.py |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/anypy/xmlrpc_.py Tue Oct 09 19:56:17 2018 -0400 +++ b/roundup/anypy/xmlrpc_.py Sun Nov 11 17:04:59 2018 +0000 @@ -1,7 +1,8 @@ try: # Python 3+. from xmlrpc import client, server -except ImportError: + server.SimpleXMLRPCDispatcher +except (ImportError, AttributeError): # Python 2. import xmlrpclib as client import SimpleXMLRPCServer as server
