File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change 16
16
"click>=5.0,<9.0" ,
17
17
"click-log>=0.3.0, <0.5.0" ,
18
18
"requests >=2.20.0" ,
19
- # https://github.com/sigmavirus24/requests-toolbelt/pull/28
20
- # And https://github.com/sigmavirus24/requests-toolbelt/issues/54
21
- "requests_toolbelt >=0.4.0" ,
22
19
# https://github.com/untitaker/python-atomicwrites/commit/4d12f23227b6a944ab1d99c507a69fdbc7c9ed6d # noqa
23
20
"atomicwrites>=0.1.7" ,
24
21
"aiohttp>=3.8.0,<4.0.0" ,
Original file line number Diff line number Diff line change 10
10
import requests .auth
11
11
from requests .utils import parse_dict_header
12
12
13
- from . import DOCS_HOME
14
13
from . import __version__
15
14
from . import exceptions
16
15
from .utils import expand_path
19
18
USERAGENT = f"vdirsyncer/{ __version__ } "
20
19
21
20
22
- def _detect_faulty_requests (): # pragma: no cover
23
- text = (
24
- "Error during import: {e}\n \n "
25
- "If you have installed vdirsyncer from a distro package, please file "
26
- "a bug against that package, not vdirsyncer.\n \n "
27
- "Consult {d}/problems.html#requests-related-importerrors"
28
- "-based-distributions on how to work around this."
29
- )
30
-
31
- try :
32
- from requests_toolbelt .auth .guess import GuessAuth # noqa
33
- except ImportError as e :
34
- import sys
35
-
36
- print (text .format (e = str (e ), d = DOCS_HOME ), file = sys .stderr )
37
- sys .exit (1 )
38
-
39
-
40
- _detect_faulty_requests ()
41
- del _detect_faulty_requests
42
-
43
-
44
21
class AuthMethod (ABC ):
45
22
def __init__ (self , username , password ):
46
23
self .username = username
You can’t perform that action at this time.
0 commit comments