diff --git a/lib/spack/llnl/util/tty/__init__.py b/lib/spack/llnl/util/tty/__init__.py index f78d88903714e891e91c0ed4929e9cb53fa7162b..5acd61bc373891f33cde0b168106c709e1b8eacd 100644 --- a/lib/spack/llnl/util/tty/__init__.py +++ b/lib/spack/llnl/util/tty/__init__.py @@ -30,6 +30,7 @@ import struct import traceback from six import StringIO +from six.moves import input from llnl.util.tty.color import * @@ -164,7 +165,7 @@ def get_number(prompt, **kwargs): number = None while number is None: msg(prompt, newline=False) - ans = raw_input() + ans = input() if ans == str(abort): return None @@ -197,7 +198,7 @@ def get_yes_or_no(prompt, **kwargs): result = None while result is None: msg(prompt, newline=False) - ans = raw_input().lower() + ans = input().lower() if not ans: result = default_value if result is None: diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index bc479c9cf590766545cfad12588aed8cec0d919d..4a42fef33798b017038b9b23a280f88ee4f89e47 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -1228,7 +1228,7 @@ def build_process(input_stream): # otherwise it should not have passed us the copy of the stream. # Thus, we are free to work with the the copy (input_stream) # however we want. For example, we might want to call functions - # (e.g. raw_input()) that implicitly read from whatever stream is + # (e.g. input()) that implicitly read from whatever stream is # assigned to sys.stdin. Since we want them to work with the # original input stream, we are making the following assignment: sys.stdin = input_stream