[CalendarServer-changes] [14622] PyKerberos/trunk/test.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 26 15:15:30 PDT 2015


Revision: 14622
          http://trac.calendarserver.org//changeset/14622
Author:   wsanchez at apple.com
Date:     2015-03-26 15:15:30 -0700 (Thu, 26 Mar 2015)
Log Message:
-----------
Py3 friendly

Modified Paths:
--------------
    PyKerberos/trunk/test.py

Modified: PyKerberos/trunk/test.py
===================================================================
--- PyKerberos/trunk/test.py	2015-03-26 22:14:07 UTC (rev 14621)
+++ PyKerberos/trunk/test.py	2015-03-26 22:15:30 UTC (rev 14622)
@@ -39,7 +39,10 @@
 import socket
 import ssl
 
-from httplib import HTTPSConnection, HTTPConnection
+try:
+    from http.client import HTTPSConnection, HTTPConnection
+except ImportError:
+    from httplib import HTTPSConnection, HTTPConnection
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150326/695d318b/attachment.html>


More information about the calendarserver-changes mailing list