summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Mueller <dirk@dmllr.de>2017-10-24 14:27:41 +0200
committerDirk Mueller <dirk@dmllr.de>2017-10-24 14:27:41 +0200
commitf92a2e36d5dcaf5acec58931f42695230131ea58 (patch)
tree70e1048c9dd2ba48e125d801bf6480f738bc6d66
parent6faef2bfda5752c87d432872fe0000aa13316014 (diff)
downloadpep8-f92a2e36d5dcaf5acec58931f42695230131ea58.tar.gz
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'
-rwxr-xr-xpycodestyle.py2
1 files changed, 1 insertions, 1 deletions
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