diff roundup/anypy/xmlrpc_.py @ 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 e46ce04d5bbc
children 99d4fb22aa65
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

Roundup Issue Tracker: http://roundup-tracker.org/