Bugfix if it's not a Python source file to syntax check. BgService

Sat, 22 Mar 2014 16:03:40 +0100

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sat, 22 Mar 2014 16:03:40 +0100
branch
BgService
changeset 3418
27ab90e0f25e
parent 3417
5a93c6cdc989
child 3422
ecfe8271cc73

Bugfix if it's not a Python source file to syntax check.

Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckService.py file | annotate | diff | comparison | revisions
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckService.py	Sat Mar 22 14:44:39 2014 +0100
+++ b/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckService.py	Sat Mar 22 16:03:40 2014 +0100
@@ -50,7 +50,7 @@
             return 'Python{0}'.format(pyVer)
         
         for lang, (getArgs, getExt) in self.__supportedLanguages.items():
-            if filename.endswith(getExt()):
+            if filename.endswith(tuple(getExt())):
                 return lang
         
         return None

eric ide

mercurial