PluginManager/PluginManager.py

branch
Py2 comp.
changeset 3523
8df1ab89e261
parent 3520
bfcefbb1633c
child 3621
15f23ed3f216
diff -r bfcefbb1633c -r 8df1ab89e261 PluginManager/PluginManager.py
--- a/PluginManager/PluginManager.py	Sun Apr 20 16:37:34 2014 +0200
+++ b/PluginManager/PluginManager.py	Mon Apr 21 16:17:20 2014 +0200
@@ -7,7 +7,7 @@
 Module implementing the Plugin Manager.
 """
 
-from __future__ import unicode_literals
+from __future__ import unicode_literals, print_function
 
 import os
 import sys
@@ -348,7 +348,7 @@
                         "Module is missing the Python2 compatibility flag."
                         " Please update.")
                     compatible = False
-                elif getattr(module, "python2Compatible"):
+                elif not getattr(module, "python2Compatible"):
                     module.error = self.tr(
                         "Module is not Python2 compatible.")
                     compatible = False
@@ -378,7 +378,7 @@
             print("Error loading plug-in module:", name)
         except PluginPy2IncompatibleError:
             print("Error loading plug-in module:", name)
-            print("Th plug-in is not Python2 compatible.")
+            print("The plug-in is not Python2 compatible.")
         except Exception as err:
             module = imp.new_module(name)
             module.error = self.tr(

eric ide

mercurial