Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Unified Diff: tools/telemetry/telemetry/core/backends/chrome/ios_browser_backend.py

Issue 739623005: [Telemetry] Resolve errors due to new pylint checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready to land Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698