| Index: third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/xml.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/xml.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/xml.py
|
| index ff4a4159f1a2377536c4bbea82dadb4e8fcc0563..f58da354c2d1fc85b0d150d3275dec37ccb4651f 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/xml.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/xml.py
|
| @@ -28,6 +28,7 @@ from xml.parsers import expat
|
|
|
|
|
| class XMLChecker(object):
|
| +
|
| """Processes XML lines for checking style."""
|
|
|
| def __init__(self, file_path, handle_style_error):
|
| @@ -41,5 +42,5 @@ class XMLChecker(object):
|
| parser.Parse(line)
|
| parser.Parse('\n')
|
| parser.Parse('', True)
|
| - except expat.ExpatError, error:
|
| + except expat.ExpatError as error:
|
| self._handle_style_error(error.lineno, 'xml/syntax', 5, expat.ErrorString(error.code))
|
|
|