PluginPrintRemover.py

changeset 51
a18bc7af1151
parent 49
d721d13f5e4e
child 53
359f9805af93
diff -r e8ea800139c9 -r a18bc7af1151 PluginPrintRemover.py
--- a/PluginPrintRemover.py	Wed Apr 08 19:33:29 2020 +0200
+++ b/PluginPrintRemover.py	Wed Jun 24 17:45:47 2020 +0200
@@ -7,8 +7,6 @@
 Module implementing the Print Remover plug-in.
 """
 
-from __future__ import unicode_literals    # __IGNORE_WARNING__
-
 import os
 
 from PyQt5.QtCore import QObject, QTranslator, QCoreApplication
@@ -23,19 +21,19 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "2.2.0"
+version = "3.0.0"
 className = "PrintRemoverPlugin"
 packageName = "PrintRemover"
 shortDescription = "Remove print() like debug statements."
-longDescription = \
-    """This plug-in implements a tool to remove lines starting with""" \
-    """ a configurable string. This is mostly used to remove print()""" \
-    """ like debug statements. The match is done after stripping all""" \
-    """ whitespace from the beginning of a line. Lines containing the""" \
+longDescription = (
+    """This plug-in implements a tool to remove lines starting with"""
+    """ a configurable string. This is mostly used to remove print()"""
+    """ like debug statements. The match is done after stripping all"""
+    """ whitespace from the beginning of a line. Lines containing the"""
     """ string '__NO_REMOVE__' are preserved."""
+)
 needsRestart = False
 pyqtApi = 2
-python2Compatible = True
 # End-Of-Header
 
 error = ""
@@ -51,11 +49,11 @@
     @return reference to the configuration page
     """
     global printRemoverPluginObject
-    from PrintRemover.ConfigurationPage.PrintRemoverPage import \
+    from PrintRemover.ConfigurationPage.PrintRemoverPage import (
         PrintRemoverPage
-    page = PrintRemoverPage(printRemoverPluginObject)
-    return page
-    
+    )
+    return PrintRemoverPage(printRemoverPluginObject)
+
 
 def getConfigData():
     """
@@ -71,7 +69,7 @@
         lightness = palette.color(QPalette.Window).lightness()
         usesDarkPalette = lightness <= 128
     if usesDarkPalette:
-       iconSuffix = "dark"
+        iconSuffix = "dark"
     else:
         iconSuffix = "light"
     

eric ide

mercurial