Antoine Pitrou added the comment: > Antoine - I approached it from idea that check_hostname "as a setting" > is allowed from HTTPSConnection (http/client.py) but it not > controllable from urllib. Is there a case where it is useful in > HTTPSConnection, but it should not be from urllib?
HTTPSConnection is lower-level, so it makes sense to allow more deviations there. That's why HTTPSConnection also takes the context directly. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17483> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com