14
0

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:
Niels Abspoel
2017-09-30 19:28:09 +00:00
committed by Git OBS Bridge
parent 3f9cc0621f
commit 85c93f76f0
3 changed files with 23 additions and 1 deletions

12
fix-backports-usage.patch Normal file
View 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: