Make raw_input available on Python 3 by aliasing it to input.

This commit is contained in:
Jochen Kupperschmidt
2016-06-06 00:29:32 +02:00
parent 3e92a86161
commit 777f264796

View File

@ -21,6 +21,13 @@ except ImportError:
# Python 2 # Python 2
from urllib2 import HTTPError, URLError, urlopen from urllib2 import HTTPError, URLError, urlopen
try:
# Python 2
raw_input
except NameError:
# Python 3 (Python 2's `raw_input` was renamed to `input`)
raw_input = input
GITHUB_BASE_URL = 'https://github.com/' GITHUB_BASE_URL = 'https://github.com/'