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:
parent
6c39473ce5
commit
9f236cd9a2
@ -18,6 +18,8 @@ import logging
|
|||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
import six
|
||||||
|
|
||||||
import heatclient.exc
|
import heatclient.exc
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
@ -99,7 +101,7 @@ class StackUpdateManager(object):
|
|||||||
if resources[state]:
|
if resources[state]:
|
||||||
print("{0}: {1}".format(state, self._server_names(
|
print("{0}: {1}".format(state, self._server_names(
|
||||||
resources[state].keys())))
|
resources[state].keys())))
|
||||||
user_input = raw_input(
|
user_input = six.moves.input(
|
||||||
"Breakpoint reached, continue? Regexp or "
|
"Breakpoint reached, continue? Regexp or "
|
||||||
"Enter=proceed (will clear %s), "
|
"Enter=proceed (will clear %s), "
|
||||||
"no=cancel update, C-c=quit interactive mode: "
|
"no=cancel update, C-c=quit interactive mode: "
|
||||||
|
Loading…
Reference in New Issue
Block a user