Blame SOURCES/0002-Use-system-urllib3-package.patch

rdobuilder 0375ed
From e1f48323a1eb73018e3929eeac65b26eee7207ea Mon Sep 17 00:00:00 2001
rdobuilder 0375ed
From: Jamie Lennox <jamielennox@gmail.com>
rdobuilder 0375ed
Date: Wed, 4 Dec 2019 21:56:45 +1100
rdobuilder 0375ed
Subject: [PATCH] Use system urllib3 package
rdobuilder 0375ed
rdobuilder 0375ed
The fedora requests package uses the system urllib3 rather than the one
rdobuilder 0375ed
bundled into requests. requests-mock must therefore do the same thing.
rdobuilder 0375ed
---
rdobuilder 0375ed
 requests_mock/response.py | 2 +-
rdobuilder 0375ed
 1 file changed, 1 insertion(+), 1 deletion(-)
rdobuilder 0375ed
rdobuilder 0375ed
diff --git a/requests_mock/response.py b/requests_mock/response.py
rdobuilder 0375ed
index d081cf5..13ab2b8 100644
rdobuilder 0375ed
--- a/requests_mock/response.py
rdobuilder 0375ed
+++ b/requests_mock/response.py
rdobuilder 0375ed
@@ -16,9 +16,9 @@ from requests.adapters import HTTPAdapter
rdobuilder 0375ed
 from requests.cookies import MockRequest, MockResponse
rdobuilder 0375ed
 from requests.cookies import RequestsCookieJar
rdobuilder 0375ed
 from requests.cookies import merge_cookies, cookiejar_from_dict
rdobuilder 0375ed
-from requests.packages.urllib3.response import HTTPResponse
rdobuilder 0375ed
 from requests.utils import get_encoding_from_headers
rdobuilder 0375ed
 import six
rdobuilder 0375ed
+from urllib3.response import HTTPResponse
rdobuilder 0375ed
rdobuilder 0375ed
 from requests_mock import compat
rdobuilder 0375ed
 from requests_mock import exceptions
rdobuilder 0375ed
--
rdobuilder 0375ed
2.21.0
rdobuilder 0375ed