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
This commit is contained in:
Lucas Alvares Gomes 2016-09-05 16:22:16 +01:00
parent 6c39473ce5
commit 9f236cd9a2
1 changed files with 3 additions and 1 deletions

View File

@ -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: "