Accepting request 535198 from devel:languages:python

- use python3 for detection, in anticipation of python2 removal

OBS-URL: https://build.opensuse.org/request/show/535198
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-urllib3?expand=0&rev=14
This commit is contained in:
Dominique Leuenberger 2017-10-28 12:17:34 +00:00 committed by Git OBS Bridge
commit 6543261589
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 19 11:48:58 UTC 2017 - jmatejek@suse.com
- use python3 for detection, in anticipation of python2 removal
-------------------------------------------------------------------
Fri Aug 11 14:55:33 UTC 2017 - toddrme2178@gmail.com

View File

@ -70,7 +70,7 @@ Highlights
%setup -q -n urllib3-%{version}
%patch1 -p1
%patch2 -p1
%if %(python -c "import ssl; print(hasattr(ssl,'PROTOCOL_TLSv1_2'))") == "True"
%if %(python3 -c "import ssl; print(hasattr(ssl,'PROTOCOL_TLSv1_2'))") == "True"
%patch3 -p1
%endif