diff options
author | Christian Heimes <christian@python.org> | 2018-03-24 14:36:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-24 14:36:50 (GMT) |
commit | e42ae915095ebca789cc36f3a336a3331fe35945 (patch) | |
tree | e004fa88ee5ba79a4e4b1fded82b6e903bce8df0 /Lib/ssl.py | |
parent | d8b291a74284307610946f1b5801aa95d7f1e052 (diff) | |
download | cpython-e42ae915095ebca789cc36f3a336a3331fe35945.zip cpython-e42ae915095ebca789cc36f3a336a3331fe35945.tar.gz cpython-e42ae915095ebca789cc36f3a336a3331fe35945.tar.bz2 |
bpo-24334: Remove inaccurate match_hostname call (#6211)
Commit 141c5e8c re-added match_hostname() call. The resurrection of the
function call was never intended and was solely a merge mistake.
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r-- | Lib/ssl.py | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1106,11 +1106,6 @@ class SSLSocket(socket): if timeout == 0.0 and block: self.settimeout(None) self._sslobj.do_handshake() - if self.context.check_hostname: - if not self.server_hostname: - raise ValueError("check_hostname needs server_hostname " - "argument") - match_hostname(self.getpeercert(), self.server_hostname) finally: self.settimeout(timeout) |