Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit fa32169

Browse files
author
Ricky Stewart
committed
Bug 1677536 - Remove reference to raw_input() in code_analysis mach commands r=firefox-build-system-reviewers,nalexander
This isn't valid anymore in Python 3. Differential Revision: https://phabricator.services.mozilla.com/D97188
1 parent bb8b763 commit fa32169

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/mozbuild/mozbuild/code_analysis/mach_commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import yaml
2121

2222
import six
23+
from six.moves import input
2324

2425
from mach.decorators import (
2526
CommandArgument,
@@ -68,7 +69,7 @@ def prompt_bool(prompt, limit=5):
6869

6970
for _ in range(limit):
7071
try:
71-
return strtobool(raw_input(prompt + "[Y/N]\n"))
72+
return strtobool(input(prompt + "[Y/N]\n"))
7273
except ValueError:
7374
print(
7475
"ERROR! Please enter a valid option! Please use any of the following:"

0 commit comments

Comments
 (0)