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

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

Issue 2580293002: Style change: Rename error variables "e" -> "error" (Closed)
Patch Set: Rebase and fix formatter unittest. Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/memoized_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/memoized.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/memoized.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/memoized.py
index 7a9a925e12679afbe123692972ced8a3f118dc4f..b9566dd724ec6b33647607cbce7695b6d34208e0 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/memoized.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/memoized.py
@@ -45,10 +45,10 @@ class memoized(object):
result = self._function(*args)
self._results_cache[args] = result
return result
- except TypeError as e:
+ except TypeError as error:
raise TypeError(
'Cannot call memoized function %s with unhashable '
- 'arguments: %s' % (self._function.__name__, e.message))
+ 'arguments: %s' % (self._function.__name__, error.message))
# Use python "descriptor" protocol __get__ to appear
# invisible during property access.
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/memoized_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698