summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-03-25 16:17:19 -0700
committerJason R. Coombs <jaraco@jaraco.com>2013-03-25 16:17:19 -0700
commit117ff0947fc072c81158766d0cd0b39c8f057586 (patch)
tree8c2b1070f517e04194f81b283555caee31396cd3
parentf4e18e66fed8ba445ca8ecf42704c5f89024a92d (diff)
downloadcherrypy-117ff0947fc072c81158766d0cd0b39c8f057586.tar.gz
Use 'input' for Python 3 compatibility
-rw-r--r--release.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/release.py b/release.py
index 0ab4d538..985bd78d 100644
--- a/release.py
+++ b/release.py
@@ -16,6 +16,9 @@ import shutil
VERSION='3.2.3'
+if sys.version_info < (3,):
+ input = raw_input
+
def get_next_version():
digits = map(int, VERSION.split('.'))
digits[-1] += 1
@@ -35,7 +38,7 @@ def check_status():
"""
print("You're about to release CherryPy {NEXT_VERSION}".format(
**globals()))
- res = raw_input('Have you run the tests with `nosetests -s ./` on '
+ res = input('Have you run the tests with `nosetests -s ./` on '
'Windows, Linux, and Mac on at least Python 2.4, 2.5, 2.7, and 3.2? '
.format(**globals()))
if not res.lower().startswith('y'):
@@ -89,14 +92,14 @@ def publish():
print("Unable to upload the dist files. Ask in IRC for help access "
"or assistance.")
raise SystemExit(4)
- res = raw_input('Have you asked in IRC for others to help you test '
+ res = input('Have you asked in IRC for others to help you test '
'CherryPy {NEXT_VERSION}? '
.format(**globals()))
if not res.lower().startswith('y'):
print("Please do that")
raise SystemExit(2)
subprocess.check_call([sys.executable, 'setup.py', 'register'])
- res = raw_input("Have you confirmed that the distro installs properly "
+ res = input("Have you confirmed that the distro installs properly "
"with `easy_install CherryPy=={NEXT_VERSION}`? ".format(**globals()))
if not res.lower().startswith('y'):
print("Please do that")