Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tests/wpt/update: Use input() from six instead of raw_input()
  • Loading branch information
marmeladema committed Oct 22, 2019
1 parent c0a9d39 commit f51ae46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/wpt/update/upstream.py
Expand Up @@ -5,6 +5,7 @@
import subprocess
import sys
import six.moves.urllib as urllib
from six.moves import input

from wptrunner.update.sync import UpdateCheckout
from wptrunner.update.tree import get_unique_name
Expand Down Expand Up @@ -158,7 +159,7 @@ def create(self, state):
for i, commit in enumerate(commits):
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()
invalid = False
for item in remove.split(" "):
Expand All @@ -182,7 +183,7 @@ def create(self, state):
print("Selected the following commits to keep:")
for i, commit in keep_commits:
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":
state.source_commits = [item[1] for item in keep_commits]
Expand Down

0 comments on commit f51ae46

Please sign in to comment.