mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
tests/wpt/update: Use input() from six instead of raw_input()
This commit is contained in:
parent
c0a9d39525
commit
f51ae46570
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@ import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import six.moves.urllib as urllib
|
import six.moves.urllib as urllib
|
||||||
|
from six.moves import input
|
||||||
|
|
||||||
from wptrunner.update.sync import UpdateCheckout
|
from wptrunner.update.sync import UpdateCheckout
|
||||||
from wptrunner.update.tree import get_unique_name
|
from wptrunner.update.tree import get_unique_name
|
||||||
|
@ -158,7 +159,7 @@ class SelectCommits(Step):
|
||||||
for i, commit in enumerate(commits):
|
for i, commit in enumerate(commits):
|
||||||
print("%i:\t%s" % (i, commit.message.summary))
|
print("%i:\t%s" % (i, commit.message.summary))
|
||||||
|
|
||||||
remove = raw_input("Provide a space-separated list of any commits numbers to remove from the list to upstream:\n").strip()
|
remove = input("Provide a space-separated list of any commits numbers to remove from the list to upstream:\n").strip()
|
||||||
remove_idx = set()
|
remove_idx = set()
|
||||||
invalid = False
|
invalid = False
|
||||||
for item in remove.split(" "):
|
for item in remove.split(" "):
|
||||||
|
@ -182,7 +183,7 @@ class SelectCommits(Step):
|
||||||
print("Selected the following commits to keep:")
|
print("Selected the following commits to keep:")
|
||||||
for i, commit in keep_commits:
|
for i, commit in keep_commits:
|
||||||
print("%i:\t%s" % (i, commit.message.summary))
|
print("%i:\t%s" % (i, commit.message.summary))
|
||||||
confirm = raw_input("Keep the above commits? y/n\n").strip().lower()
|
confirm = input("Keep the above commits? y/n\n").strip().lower()
|
||||||
|
|
||||||
if confirm == "y":
|
if confirm == "y":
|
||||||
state.source_commits = [item[1] for item in keep_commits]
|
state.source_commits = [item[1] for item in keep_commits]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue