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