diff --git a/cgcs-patch/cgcs-patch/cgcs_patch/patch_client.py b/cgcs-patch/cgcs-patch/cgcs_patch/patch_client.py index d4cdba44..940304e5 100644 --- a/cgcs-patch/cgcs-patch/cgcs_patch/patch_client.py +++ b/cgcs-patch/cgcs-patch/cgcs_patch/patch_client.py @@ -5,6 +5,7 @@ SPDX-License-Identifier: Apache-2.0 """ +from builtins import input import requests import json import os @@ -600,7 +601,7 @@ def patch_commit_req(debug, args): print textwrap.fill(commit_warning, width=TERM_WIDTH, subsequent_indent=' ' * 9) print - user_input = raw_input("Would you like to continue? [y/N]: ") + user_input = input("Would you like to continue? [y/N]: ") if user_input.lower() != 'y': print "Aborting..." return 1 diff --git a/tox.ini b/tox.ini index 0188d675..50076a37 100644 --- a/tox.ini +++ b/tox.ini @@ -100,6 +100,7 @@ deps = {[testenv]deps} requests requests_toolbelt rpm + future basepython = python2.7 commands = pylint {[testenv]cgcs_patch_src_dir} \ {[testenv]patch_alarm_src_dir} \