Blame SOURCES/pki-core-platform-dependent-python-import.patch

632623
From dfbd7c8d54dc27957438a722bc43e37b1b2057b6 Mon Sep 17 00:00:00 2001
632623
From: Matthew Harmsen <mharmsen@redhat.com>
632623
Date: Thu, 22 Jun 2017 12:50:21 -0600
632623
Subject: [PATCH] dogtagpki Pagure Issue #2745 - Platform Dependent Python
632623
 Import
632623
632623
(cherry picked from commit 9d63a7a6b1abb42595b6a24296a39a79441ba8df)
632623
---
632623
 base/common/python/pki/client.py | 5 ++++-
632623
 1 file changed, 4 insertions(+), 1 deletion(-)
632623
632623
diff --git a/base/common/python/pki/client.py b/base/common/python/pki/client.py
632623
index 805d0fa..e1a4d3f 100644
632623
--- a/base/common/python/pki/client.py
632623
+++ b/base/common/python/pki/client.py
632623
@@ -25,7 +25,10 @@ import functools
632623
 import warnings
632623
 
632623
 import requests
632623
-from requests.packages.urllib3.exceptions import InsecureRequestWarning
632623
+try:
632623
+    from requests.packages.urllib3.exceptions import InsecureRequestWarning
632623
+except ImportError:
632623
+    from urllib3.exceptions import InsecureRequestWarning
632623
 
632623
 
632623
 def catch_insecure_warning(func):
632623
-- 
632623
1.8.3.1
632623