PluginPyLint.py

changeset 32
b0a6368042b9
parent 31
d8e6de5a0cb7
child 35
c3ca6d580760
diff -r d8e6de5a0cb7 -r b0a6368042b9 PluginPyLint.py
--- a/PluginPyLint.py	Sun Mar 30 16:07:16 2014 +0200
+++ b/PluginPyLint.py	Wed Apr 23 23:24:48 2014 +0200
@@ -7,10 +7,10 @@
 Module implementing the PyLint plug-in.
 """
 
-from __future__ import unicode_literals     # __IGNORE_WARNING__
+from __future__ import unicode_literals
 try:
-    str = unicode                           # __IGNORE_WARNING__
-except (NameError):
+    str = unicode
+except NameError:
     pass
 
 import re
@@ -42,7 +42,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "5.3.2"
+version = "5.4.0"
 className = "PyLintPlugin"
 packageName = "PyLint"
 shortDescription = "Show the PyLint dialogs."
@@ -51,6 +51,7 @@
     """ rules."""
 needsRestart = False
 pyqtApi = 2
+python2Compatible = True
 # End-of-Header
 
 exePy2 = []
@@ -492,8 +493,8 @@
                 .getProjectBrowser("sources")\
                 .getSelectedItemsCount([ProjectBrowserFileItem]) == 1
             self.__projectBrowserAct.setEnabled(enable)
-            self.__projectBrowserShowAct.setEnabled(enable and
-                self.__pylintPsbDialog is not None)
+            self.__projectBrowserShowAct.setEnabled(
+                enable and self.__pylintPsbDialog is not None)
     
     def __pyLint(self, project, mpName, forProject, forEditor=False):
         """

eric ide

mercurial