python2Compatible flag added.

Wed, 23 Apr 2014 23:24:48 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Wed, 23 Apr 2014 23:24:48 +0200
changeset 32
b0a6368042b9
parent 31
d8e6de5a0cb7
child 33
b4cb9692bd3d

python2Compatible flag added.

ChangeLog file | annotate | diff | comparison | revisions
PluginPyLint.py file | annotate | diff | comparison | revisions
PluginPyLint.zip file | annotate | diff | comparison | revisions
PyLint/PyLintConfigDialog.py file | annotate | diff | comparison | revisions
PyLint/PyLintExecDialog.py file | annotate | diff | comparison | revisions
--- a/ChangeLog	Sun Mar 30 16:07:16 2014 +0200
+++ b/ChangeLog	Wed Apr 23 23:24:48 2014 +0200
@@ -1,5 +1,9 @@
 ChangeLog
 ---------
+Version 5.4.0:
+- Python 2 compatibility flag added
+- fixed some code style issues
+
 Version 5.3.1:
 - fixed some code style issues
 
--- 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):
         """
Binary file PluginPyLint.zip has changed
--- a/PyLint/PyLintConfigDialog.py	Sun Mar 30 16:07:16 2014 +0200
+++ b/PyLint/PyLintConfigDialog.py	Wed Apr 23 23:24:48 2014 +0200
@@ -7,10 +7,10 @@
 Module implementing a dialog to configure the PyLint process.
 """
 
-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 os
--- a/PyLint/PyLintExecDialog.py	Sun Mar 30 16:07:16 2014 +0200
+++ b/PyLint/PyLintExecDialog.py	Wed Apr 23 23:24:48 2014 +0200
@@ -7,10 +7,10 @@
 Module implementing a dialog to show the results of the PyLint run.
 """
 
-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 os

eric ide

mercurial