From 9f236cd9a25522e1fc0bc1299fca1ff54c82df52 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Mon, 5 Sep 2016 16:22:16 +0100 Subject: [PATCH] Fix pep8 errors when running with python3 This patch is replacing raw_input() with six.moves.input() because raw_input is not present in python3+. Fixing this also makes "tox -epep8" happy when running with python3. Change-Id: If28f97b479fa018079c7d180541ca29689398a68 --- tripleo_common/_stack_update.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tripleo_common/_stack_update.py b/tripleo_common/_stack_update.py index 3f1b1559e..c458438f5 100644 --- a/tripleo_common/_stack_update.py +++ b/tripleo_common/_stack_update.py @@ -18,6 +18,8 @@ import logging import re import time +import six + import heatclient.exc LOG = logging.getLogger(__name__) @@ -99,7 +101,7 @@ class StackUpdateManager(object): if resources[state]: print("{0}: {1}".format(state, self._server_names( resources[state].keys()))) - user_input = raw_input( + user_input = six.moves.input( "Breakpoint reached, continue? Regexp or " "Enter=proceed (will clear %s), " "no=cancel update, C-c=quit interactive mode: "