diff options
author | 2021-06-03 06:16:49 +0000 | |
---|---|---|
committer | 2021-06-03 06:16:49 +0000 | |
commit | ec6921039af3b016eecc6e609f2554aea0f81e2c (patch) | |
tree | 4d2df62475e73a563e572180a13dec3b5e1b994e /xtesting/utils/decorators.py | |
parent | 454bef238020d8ac0e986807f34dfc140362b629 (diff) | |
parent | a656fd764b0a608caaf198bfa9685a09a7eaca16 (diff) |
Merge "Drop six"
Diffstat (limited to 'xtesting/utils/decorators.py')
-rw-r--r-- | xtesting/utils/decorators.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xtesting/utils/decorators.py b/xtesting/utils/decorators.py index 230a99e7..2ce12fa7 100644 --- a/xtesting/utils/decorators.py +++ b/xtesting/utils/decorators.py @@ -12,17 +12,17 @@ import errno import functools import os +from urllib.parse import urlparse import mock import requests.sessions -from six.moves import urllib def can_dump_request_to_file(method): def dump_preparedrequest(request, **kwargs): # pylint: disable=unused-argument - parseresult = urllib.parse.urlparse(request.url) + parseresult = urlparse(request.url) if parseresult.scheme == "file": try: dirname = os.path.dirname(parseresult.path) @@ -41,7 +41,7 @@ def can_dump_request_to_file(method): def patch_request(method, url, **kwargs): with requests.sessions.Session() as session: - parseresult = urllib.parse.urlparse(url) + parseresult = urlparse(url) if parseresult.scheme == "file": with mock.patch.object(session, 'send', side_effect=dump_preparedrequest): |