diff --git a/python/tidy.py b/python/tidy.py index 21b7c74e36c..625c3111465 100644 --- a/python/tidy.py +++ b/python/tidy.py @@ -153,7 +153,7 @@ def check_flake8(file_name, contents): with stdout_redirect(output): check_code(contents, ignore=ignore) for error in output.getvalue().splitlines(): - _, line_num, _, message = error.split(":") + _, line_num, _, message = error.split(":", 3) yield line_num, message.strip()