From f92a2e36d5dcaf5acec58931f42695230131ea58 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 24 Oct 2017 14:27:41 +0200 Subject: Fix missed quoting in E722 check The warning looks fairly odd: E722 do not use bare except' change this to E722 do not use bare 'except' --- pycodestyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycodestyle.py b/pycodestyle.py index d31ac9e..dc486c8 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -1280,7 +1280,7 @@ def bare_except(logical_line, noqa): regex = re.compile(r"except\s*:") match = regex.match(logical_line) if match: - yield match.start(), "E722 do not use bare except'" + yield match.start(), "E722 do not use bare 'except'" @register_check -- cgit v1.2.1