| 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):
|
|
|