Corrected the check regex for blind except statements.

Sun, 15 Nov 2015 13:59:43 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 15 Nov 2015 13:59:43 +0100
changeset 4564
a6480863adfb
parent 4563
881340f4bd0c
child 4566
a2e8f3c420ec

Corrected the check regex for blind except statements.

Plugins/CheckerPlugins/CodeStyleChecker/MiscellaneousChecker.py file | annotate | diff | comparison | revisions
diff -r 881340f4bd0c -r a6480863adfb Plugins/CheckerPlugins/CodeStyleChecker/MiscellaneousChecker.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/MiscellaneousChecker.py	Sun Nov 15 13:52:29 2015 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/MiscellaneousChecker.py	Sun Nov 15 13:59:43 2015 +0100
@@ -68,7 +68,7 @@
         self.__args = args
         
         self.__blindExceptRegex = re.compile(
-            r'(except:)')                               # __IGNORE_WARNING__
+            r'(\bexcept:)')                             # __IGNORE_WARNING__
         self.__pep3101FormatRegex = re.compile(
             r'^(?:[^\'"]*[\'"][^\'"]*[\'"])*\s*%|^\s*%')
 

eric ide

mercurial