From 26c69a2abf88c99c0ee7ccb72f5b7db00cbe46ba Mon Sep 17 00:00:00 2001 From: Ronnie Andrew Magatti Date: Mon, 5 Oct 2015 15:37:38 -0300 Subject: [PATCH] Fix pep8 --- kivy/network/urlrequest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kivy/network/urlrequest.py b/kivy/network/urlrequest.py index 96522ee46..8469cb13f 100644 --- a/kivy/network/urlrequest.py +++ b/kivy/network/urlrequest.py @@ -272,7 +272,8 @@ class UrlRequest(Thread): ctx.verify_mode = ssl.CERT_REQUIRED args['context'] = ctx - if not verify and parse.scheme == 'https' and hasattr(ssl, 'create_default_context'): + if not verify and parse.scheme == 'https' and ( + hasattr(ssl, 'create_default_context')): ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE