From 681977029d12df37be258f449706f2d68b15a7b8 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Apr 26 2020 00:40:37 +0000 Subject: ipsilon-server-install: Use input() from six for Python 3 compatibility In Python 3, raw_input() was renamed to input() as a breaking change. Adapt to this by using six to have input() working properly on Py2 and Py3. Signed-off-by: Neal Gompa --- diff --git a/ipsilon/install/ipsilon-server-install b/ipsilon/install/ipsilon-server-install index c43a7c3..5f896dd 100755 --- a/ipsilon/install/ipsilon-server-install +++ b/ipsilon/install/ipsilon-server-install @@ -21,6 +21,7 @@ import shutil import socket import six from six.moves import configparser +from six.moves import input import subprocess import sys import time @@ -281,7 +282,7 @@ def uninstall(plugins, args): raise Exception('Could not find instance %s httpd configuration' % args['instance']) if not args['yes']: - sure = raw_input(('Are you certain you want to erase instance %s ' + + sure = input(('Are you certain you want to erase instance %s ' + '[yes/NO]: ') % args['instance']) if sure != 'yes':