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

-- 
To view, visit https://gerrit.wikimedia.org/r/90751
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0ed137df4158185f77e68c2e300a78eb5caf3733
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: python3
Gerrit-Owner: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to