| 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..24d29ba9b0d1222f8a19c5eb82848e8038f5ee86 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py
|
| @@ -27,6 +27,7 @@ import re
|
|
|
|
|
| class JSONChecker(object):
|
| +
|
| """Processes JSON lines for checking style."""
|
|
|
| categories = set(('json/syntax',))
|
| @@ -38,7 +39,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
|
|
|