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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py

Issue 2136793002: Remove all unused variables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py
index 06385a79b8ad6beff1582c817ac7542f027910a3..5d83b556b6f54b6ce176e2eaba059a883cf0ec89 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/user.py
@@ -96,14 +96,14 @@ class User(object):
indices += range(int(parts[0]) - 1, int(parts[1]))
else:
indices.append(int(value) - 1)
- except ValueError as err:
+ except ValueError:
continue
return [list_items[i] for i in indices]
else:
try:
result = int(cls.prompt("Enter a number: ", raw_input=raw_input)) - 1
- except ValueError as err:
+ except ValueError:
continue
return list_items[result]
@@ -128,7 +128,7 @@ class User(object):
# Note: Not thread safe: http://bugs.python.org/issue2320
child_process = subprocess.Popen([pager], stdin=subprocess.PIPE)
child_process.communicate(input=message)
- except IOError as e:
+ except IOError:
pass
def confirm(self, message=None, default=DEFAULT_YES, raw_input=raw_input):
@@ -144,7 +144,7 @@ class User(object):
try:
webbrowser.get()
return True
- except webbrowser.Error as e:
+ except webbrowser.Error:
return False
def open_url(self, url):

Powered by Google App Engine
This is Rietveld 408576698