Index: tools/telemetry/telemetry/core/backends/chrome/ios_browser_backend.py |
diff --git a/tools/telemetry/telemetry/core/backends/chrome/ios_browser_backend.py b/tools/telemetry/telemetry/core/backends/chrome/ios_browser_backend.py |
index 59e009b3d1849f5684fc851fa28d07e38bdd62ef..5310fc7ddb6601e758a3858d0f6ff072cf3304f6 100644 |
--- a/tools/telemetry/telemetry/core/backends/chrome/ios_browser_backend.py |
+++ b/tools/telemetry/telemetry/core/backends/chrome/ios_browser_backend.py |
@@ -15,7 +15,7 @@ from telemetry.core.backends.chrome import system_info_backend |
class IosBrowserBackend(chrome_browser_backend.ChromeBrowserBackend): |
_DEBUGGER_URL_BUILDER = 'ws://localhost:%i/devtools/page/%i' |
- _DEBUGGER_URL_REGEX = 'ws://localhost:(\d+)/devtools/page/(\d+)' |
+ _DEBUGGER_URL_REGEX = r'ws://localhost:(\d+)/devtools/page/(\d+)' |
_DEVICE_LIST_URL = 'http://localhost:9221/json' |
def __init__(self, ios_platform_backend, browser_options): |
@@ -76,6 +76,7 @@ class IosBrowserBackend(chrome_browser_backend.ChromeBrowserBackend): |
def GetData(): |
try: |
with contextlib.closing( |
+ # pylint: disable=cell-var-from-loop |
urllib2.urlopen('http://%s/json' % d['url'])) as f: |
json_result = f.read() |
data = json.loads(json_result) |