Plugins/PluginCodeStyleChecker.py

branch
BgService
changeset 3442
927186c0d409
parent 3413
5e63f809732a
child 3456
96232974dcdb
--- a/Plugins/PluginCodeStyleChecker.py	Sat Mar 22 18:51:14 2014 +0100
+++ b/Plugins/PluginCodeStyleChecker.py	Thu Mar 27 21:27:08 2014 +0100
@@ -337,8 +337,7 @@
         if menuName == "Checks":
             if not self.__editorAct in menu.actions():
                 menu.addAction(self.__editorAct)
-            self.__editorAct.setEnabled(
-                editor.isPy3File() or editor.isPy2File())
+            self.__editorAct.setEnabled(editor.getPyVersion())
     
     def __editorCodeStyleCheck(self):
         """

eric ide

mercurial