In python 2.7.9, a context option was added to httplib.HTTPSConnection and changed its behavior to performs certificate and hostname checks by default. While this is definitely an improvement, we were relying on the old behavior. This change restores that (until we can switch to proper verification).
8 lines
220 B
Python
8 lines
220 B
Python
# identify this as the ssl module
|
|
|
|
# our own ssl submodule masks python's in the main lib, so we import this here
|
|
try:
|
|
import ssl # python's ssl module
|
|
except ImportError:
|
|
# ssl module added in 2.6
|
|
pass
|