Skip to content

Instantly share code, notes, and snippets.

@libussa
Created October 20, 2016 15:55
Show Gist options
  • Select an option

  • Save libussa/aec4722ec50feb2890e55dc083723daf to your computer and use it in GitHub Desktop.

Select an option

Save libussa/aec4722ec50feb2890e55dc083723daf to your computer and use it in GitHub Desktop.
#### OLD ####
if sys.version_info >= (2, 6):
import ssl as SSL
ssl._create_default_https_context = ssl._create_unverified_context
#### NEW ####
if sys.version_info >= (2, 6):
import ssl as SSL
ssl._create_default_https_context = ssl._create_unverified_context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment