Skip to content

Commit ee22d9d

Browse files
committed
Fix xmlrpc module selection for incomplete backport (issue2551010).
1 parent 8aac2d6 commit ee22d9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/anypy/xmlrpc_.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
try:
22
# Python 3+.
33
from xmlrpc import client, server
4-
except ImportError:
4+
server.SimpleXMLRPCDispatcher
5+
except (ImportError, AttributeError):
56
# Python 2.
67
import xmlrpclib as client
78
import SimpleXMLRPCServer as server

0 commit comments

Comments
 (0)