I got the following error
AttributeError: 'module' object has no attribute '_create_unverified_context'.
I'm using Python 3.4.2 .
My code:
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
When I run this code, the error happens._create_unverified_context can be used in Python 3.4.2, so I really cannot understand why this error happens. How should I fix this?
Traceback says
Traceback (most recent call last):
File "quickstart.py", line 3, in <module>
ssl._create_default_https_context = ssl._create_unverified_context()
AttributeError: 'module' object has no attribute '_create_unverified_context'