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

Unified Diff: tools/telemetry/telemetry/core/backends/chrome/chrome_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/chrome_browser_backend.py
diff --git a/tools/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py b/tools/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py
index 9ae22fa1618177dc02184077f42e1a4a9f2a7f90..9bdd2432f57fd692556f04bb7042bed4ebdb72b9 100644
--- a/tools/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py
+++ b/tools/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py
@@ -263,11 +263,11 @@ class ChromeBrowserBackend(browser_backend.BrowserBackend):
resp = json.loads(data)
if 'Protocol-Version' in resp:
if 'Browser' in resp:
- branch_number_match = re.search('Chrome/\d+\.\d+\.(\d+)\.\d+',
+ branch_number_match = re.search(r'Chrome/\d+\.\d+\.(\d+)\.\d+',
resp['Browser'])
else:
branch_number_match = re.search(
- 'Chrome/\d+\.\d+\.(\d+)\.\d+ (Mobile )?Safari',
+ r'Chrome/\d+\.\d+\.(\d+)\.\d+ (Mobile )?Safari',
resp['User-Agent'])
if branch_number_match:

Powered by Google App Engine
This is Rietveld 408576698