HUE-8387 [core] remove dependency of accessing pyopenssl through requests.packages code
Review Request #13093 — Created June 19, 2018 and submitted
|enricoberti, jgauthier, johan, ranade, romain, roohi, subrata, weixia, yingc|
commit 7a9a88e4c763be749471f01944bc0fe669a1ae90 Author: Prakash Ranade <firstname.lastname@example.org> Date: Tue Jun 19 12:09:10 2018 -0700 HUE-8387 [core] remove dependency of accessing pyopenssl through requests.packages code :100644 100644 c4b673bf5e... 85cf51d36e... M desktop/core/src/desktop/lib/rest/http_client.py
currently, request library has https://github.com/requests/requests/blob/master/requests/packages.py which is used to import pyopenssl from "urllib3" module. This was a hacked way which failed on "Debian8.4".
Short circuiting and direct accessing urllib3 module.
-from requests.packages.urllib3.contrib import pyopenssl
+from urllib3.contrib import pyopenssl
tested on debian 8 cluster.