mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Remove leftover FingerprintAdapter
This commit is contained in:
parent
172a2b9b98
commit
2320570217
1 changed files with 0 additions and 13 deletions
|
|
@ -5,7 +5,6 @@ import sys
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from requests.packages.urllib3.poolmanager import PoolManager
|
|
||||||
|
|
||||||
from .compat import iteritems, urlparse
|
from .compat import iteritems, urlparse
|
||||||
from .. import exceptions, log
|
from .. import exceptions, log
|
||||||
|
|
@ -166,18 +165,6 @@ def _password_from_command(username, host):
|
||||||
format(' '.join(command), str(e)))
|
format(' '.join(command), str(e)))
|
||||||
|
|
||||||
|
|
||||||
class _FingerprintAdapter(requests.adapters.HTTPAdapter):
|
|
||||||
def __init__(self, fingerprint=None, **kwargs):
|
|
||||||
self.fingerprint = str(fingerprint)
|
|
||||||
super(_FingerprintAdapter, self).__init__(**kwargs)
|
|
||||||
|
|
||||||
def init_poolmanager(self, connections, maxsize, block=False):
|
|
||||||
self.poolmanager = PoolManager(num_pools=connections,
|
|
||||||
maxsize=maxsize,
|
|
||||||
block=block,
|
|
||||||
assert_fingerprint=self.fingerprint)
|
|
||||||
|
|
||||||
|
|
||||||
def _verify_fingerprint_works():
|
def _verify_fingerprint_works():
|
||||||
try:
|
try:
|
||||||
import requests
|
import requests
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue