calcurse-caldav: Fix comment on certificate checks
Clarify that ssl._create_unverified_context() was added in Python 3.4.3. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
849459c63f
commit
5e6a61eee9
@ -417,7 +417,7 @@ try:
|
|||||||
context = ssl._create_unverified_context()
|
context = ssl._create_unverified_context()
|
||||||
conn = http.client.HTTPSConnection(hostname, context=context)
|
conn = http.client.HTTPSConnection(hostname, context=context)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# Python versions prior to 3.4 do not support
|
# Python versions prior to 3.4.3 do not support
|
||||||
# ssl._create_unverified_context(). However, these versions do not
|
# ssl._create_unverified_context(). However, these versions do not
|
||||||
# seem to verify certificates by default so we can simply fall back
|
# seem to verify certificates by default so we can simply fall back
|
||||||
# to http.client.HTTPSConnection().
|
# to http.client.HTTPSConnection().
|
||||||
|
Loading…
x
Reference in New Issue
Block a user