Skip to content

Commit

Permalink
Map input to raw_input for 2.7 compatability
Browse files Browse the repository at this point in the history
change default https context to the more universal stdlib context
  • Loading branch information
buchanan committed Dec 31, 2015
1 parent f64aae8 commit 71e8dfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions pepper/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
# Python 2
import ConfigParser

try:
input = raw_input
except NameError:
pass

import pepper

try:
Expand Down
5 changes: 3 additions & 2 deletions pepper/libpepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
import json
import logging
import os
import ssl
try:
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
ssl._create_default_https_context = ssl._create_stdlib_context
except:
pass

try:
from urllib.request import HTTPHandler, Request, urlopen, \
install_opener, build_opener
Expand Down

0 comments on commit 71e8dfb

Please sign in to comment.