a *Na|@s0dZddlmZddlmZGdddeZdS)zSubmodule containing the implementation for the FingerprintAdapter. This file contains an implementation of a Transport Adapter that validates the fingerprints of SSL certificates presented upon connection. ) HTTPAdapter) poolmanagercs6eZdZdZejdgZfddZdddZZS) FingerprintAdaptera> A HTTPS Adapter for Python Requests that verifies certificate fingerprints, instead of certificate hostnames. Example usage: .. code-block:: python import requests import ssl from requests_toolbelt.adapters.fingerprint import FingerprintAdapter twitter_fingerprint = '...' s = requests.Session() s.mount( 'https://twitter.com', FingerprintAdapter(twitter_fingerprint) ) The fingerprint should be provided as a hexadecimal string, optionally containing colons. fingerprintc s ||_tt|jfi|dS)N)rsuperr__init__)selfrkwargs __class__/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/requests_toolbelt/adapters/fingerprint.pyr&szFingerprintAdapter.__init__FcCstj||||jd|_dS)N) num_poolsmaxsizeblockassert_fingerprint)r PoolManagerr)r connectionsrrr r rinit_poolmanager+s z#FingerprintAdapter.init_poolmanager)F) __name__ __module__ __qualname____doc__r __attrs__rr __classcell__r r r rr s  rN)rZrequests.adaptersr_compatrrr r r rs