[telemetry] python3 conversion: input_six

Convert telemetry to Python 3 style applying fixers on telemetry/:
  python -m modernize -w -f input_six .

This is one of the CLs converting Telemetry to be compatible for Python3. The conversion utilizes the modernize module: https://pypi.org/project/modernize/

Bug: chromium:1198408
Change-Id: Icd29cc60198929dee7691aecafe1a01b70ab49b8
Reviewed-on: https://chromium-review.googlesource.com/c/catapult/+/2846129
Reviewed-by: John Chen <johnchen@chromium.org>
Commit-Queue: Wenbin Zhang <wenbinzhang@google.com>
diff --git a/telemetry/telemetry/internal/actions/action_runner.py b/telemetry/telemetry/internal/actions/action_runner.py
index 24e2a10..49ea13b 100644
--- a/telemetry/telemetry/internal/actions/action_runner.py
+++ b/telemetry/telemetry/internal/actions/action_runner.py
@@ -7,6 +7,7 @@
 import time
 import six
 import six.moves.urllib.parse # pylint: disable=import-error
+from six.moves import input # pylint: disable=redefined-builtin
 
 from telemetry.core import exceptions
 from telemetry.internal.actions import page_action
@@ -818,7 +819,7 @@
     the page execution and inspect the browser state before
     continuing.
     """
-    raw_input("Interacting... Press Enter to continue.")
+    input("Interacting... Press Enter to continue.")
 
   def RepaintContinuously(self, seconds):
     """Continuously repaints the visible content.
diff --git a/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py b/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py
index 62af37b..acdf6f2 100644
--- a/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py
+++ b/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py
@@ -8,6 +8,7 @@
 import sys
 import time
 import six
+from six.moves import input # pylint: disable=redefined-builtin
 
 from py_trace_event import trace_event
 
@@ -652,9 +653,9 @@
 
   def _WaitForInspectorToGoAway(self):
     self._websocket.Disconnect()
-    raw_input('The connection to Chrome was lost to the inspector ui.\n'
-              'Please close the inspector and press enter to resume '
-              'Telemetry run...')
+    input('The connection to Chrome was lost to the inspector ui.\n'
+          'Please close the inspector and press enter to resume '
+          'Telemetry run...')
     raise exceptions.DevtoolsTargetCrashException(
         self.app, 'Devtool connection with the browser was interrupted due to '
         'the opening of an inspector.')
diff --git a/telemetry/telemetry/internal/snap_page_util.py b/telemetry/telemetry/internal/snap_page_util.py
index 0e658d4..2a19c9b 100644
--- a/telemetry/telemetry/internal/snap_page_util.py
+++ b/telemetry/telemetry/internal/snap_page_util.py
@@ -13,6 +13,7 @@
 from io import BytesIO
 
 import six.moves.urllib.request # pylint: disable=import-error
+from six.moves import input # pylint: disable=redefined-builtin
 
 from telemetry.core import util
 from telemetry.internal.browser import browser_finder
@@ -116,7 +117,7 @@
     tab = browser.tabs[0]
     tab.Navigate(url)
     if interactive:
-      raw_input(
+      input(
           'Activating interactive mode. Press enter after you finish '
           "interacting with the page to snapshot the page's DOM content.")
 
diff --git a/telemetry/telemetry/page/shared_page_state.py b/telemetry/telemetry/page/shared_page_state.py
index 1351c0d..8a941ac 100644
--- a/telemetry/telemetry/page/shared_page_state.py
+++ b/telemetry/telemetry/page/shared_page_state.py
@@ -5,6 +5,7 @@
 import logging
 import os
 import shutil
+from six.moves import input # pylint: disable=redefined-builtin
 
 from telemetry.core import exceptions
 from telemetry.core import platform as platform_module
@@ -152,8 +153,8 @@
 
   def _AllowInteractionForStage(self, stage):
     if self._finder_options.pause == stage:
-      raw_input('Pausing for interaction at %s... Press Enter to continue.' %
-                stage)
+      input('Pausing for interaction at %s... Press Enter to continue.' %
+            stage)
 
   def _StartBrowser(self, page):
     assert self._browser is None