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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py

Issue 2014063002: Run format-webkit on webkitpy code (without string conversion). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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/style/checkers/jsonchecker.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py
index 264cbeec3fd4e90c70e0bf76e74a33bc8b58c341..9b9d624a58349cded3affc5c3f20f486b64c5097 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py
@@ -38,7 +38,7 @@ class JSONChecker(object):
def check(self, lines):
try:
json.loads('\n'.join(lines) + '\n')
- except ValueError, e:
+ except ValueError as e:
self._handle_style_error(self.line_number_from_json_exception(e), 'json/syntax', 5, str(e))
@staticmethod

Powered by Google App Engine
This is Rietveld 408576698