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

Unified Diff: tools/chrome_remote_control/chrome_remote_control/page_runner.py

Issue 10984018: [chrome_remote_control] Add pylint to PRESUMMIT and fix lint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for landing Created 8 years, 3 months 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/chrome_remote_control/chrome_remote_control/page_runner.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/page_runner.py b/tools/chrome_remote_control/chrome_remote_control/page_runner.py
index 08f3226088ea9a494092ab265b0d9d0ec61975bf..a3344144d0432a76e6d3b23d3398ff58a2cf6b47 100644
--- a/tools/chrome_remote_control/chrome_remote_control/page_runner.py
+++ b/tools/chrome_remote_control/chrome_remote_control/page_runner.py
@@ -69,7 +69,7 @@ class PageRunner(object):
parsed_url = urlparse.urlparse(page.url)
if parsed_url[0] == 'file':
path = os.path.join(os.path.dirname(self.page_set.file_path),
- parsed_url[1])
+ parsed_url.netloc) # pylint: disable=E1101
dirname, filename = os.path.split(path)
if self._server and self._server.path != dirname:
self._server.Close()

Powered by Google App Engine
This is Rietveld 408576698