Remove hasattr for 'check_hostname' as should always exist in Python 3.6+
MODIFY
src/urllib3/util/ssl_.py
src/urllib3/util/ssl_.py
@@ -241,9 +241,6 @@ def create_urllib3_context(
context.post_handshake_auth = True
context.verify_mode = cert_reqs
- if (
- getattr(context, "check_hostname", None) is not None
- ): # Platform-specific: Python 3.2
# We do our own verification, including fingerprints and alternative
# hostnames. So disable it here
context.check_hostname = False

Remove hasattr for 'check_hostname' as should always exist in Python 3.6+