Skip to content

Commit 89a0163

Browse files
malmelooWhyNotHugo
authored andcommitted
Remove requests_toolbelt
1 parent 611b866 commit 89a0163

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
"click>=5.0,<9.0",
1717
"click-log>=0.3.0, <0.5.0",
1818
"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",
2219
# https://github.com/untitaker/python-atomicwrites/commit/4d12f23227b6a944ab1d99c507a69fdbc7c9ed6d # noqa
2320
"atomicwrites>=0.1.7",
2421
"aiohttp>=3.8.0,<4.0.0",

vdirsyncer/http.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import requests.auth
1111
from requests.utils import parse_dict_header
1212

13-
from . import DOCS_HOME
1413
from . import __version__
1514
from . import exceptions
1615
from .utils import expand_path
@@ -19,28 +18,6 @@
1918
USERAGENT = f"vdirsyncer/{__version__}"
2019

2120

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-
4421
class AuthMethod(ABC):
4522
def __init__(self, username, password):
4623
self.username = username

0 commit comments

Comments
 (0)