forked from pool/python-apache-libcloud
Accepting request 530138 from home:mcalmer:branches:devel:languages:python
- fix build on SLE12 by using python-backports - reduce warnings OBS-URL: https://build.opensuse.org/request/show/530138 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=72
This commit is contained in:
committed by
Git OBS Bridge
parent
3f9cc0621f
commit
85c93f76f0
12
fix-backports-usage.patch
Normal file
12
fix-backports-usage.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -uNr apache-libcloud-2.0.0.orig/libcloud/utils/py3.py apache-libcloud-2.0.0/libcloud/utils/py3.py
|
||||
--- apache-libcloud-2.0.0.orig/libcloud/utils/py3.py 2017-09-30 15:18:35.359491824 +0200
|
||||
+++ apache-libcloud-2.0.0/libcloud/utils/py3.py 2017-09-30 15:19:00.418868653 +0200
|
||||
@@ -68,7 +68,7 @@
|
||||
if sys.version_info >= (3, 2) and sys.version_info < (3, 3):
|
||||
PY32 = True
|
||||
|
||||
-if PY2_pre_279 or PY3_pre_32:
|
||||
+if PY2 or PY3_pre_32:
|
||||
try:
|
||||
from backports.ssl_match_hostname import match_hostname, CertificateError # NOQA
|
||||
except ImportError:
|
||||
Reference in New Issue
Block a user