jenkins-bot has submitted this change and it was merged.
Change subject: Use Py3-httplib2-compatible SSL Error handling ......................................................................
Use Py3-httplib2-compatible SSL Error handling
Change-Id: I0ed137df4158185f77e68c2e300a78eb5caf3733 --- M pywikibot/comms/http.py 1 file changed, 4 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py index 1dee9ec..49e57ac 100644 --- a/pywikibot/comms/http.py +++ b/pywikibot/comms/http.py @@ -27,7 +27,10 @@ import logging import atexit
-from httplib2 import SSLHandshakeError +try: + from httplib2 import SSLHandshakeError +except ImportError: + from ssl import SSLError as SSLHandshakeError from pywikibot import config from pywikibot.exceptions import FatalServerError, Server504Error import pywikibot
pywikibot-commits@lists.wikimedia.org