PluginSelectionEncloser.py

changeset 41
e747eb5f3f43
parent 39
401d0bab970d
child 43
135907873e65
diff -r e534c4399087 -r e747eb5f3f43 PluginSelectionEncloser.py
--- a/PluginSelectionEncloser.py	Wed Apr 08 19:22:28 2020 +0200
+++ b/PluginSelectionEncloser.py	Wed Jun 24 17:36:34 2020 +0200
@@ -7,8 +7,6 @@
 Module implementing the Selection Encloser plug-in.
 """
 
-from __future__ import unicode_literals
-
 import os
 import json
 
@@ -24,17 +22,17 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "2.2.0"
+version = "3.0.0"
 className = "SelectionEncloserPlugin"
 packageName = "SelectionEncloser"
 shortDescription = "Enclose the selection with a string."
-longDescription = \
-    """This plug-in implements a tool to enclose the selection of""" \
-    """ the current editor with a string. The enclosing string is""" \
+longDescription = (
+    """This plug-in implements a tool to enclose the selection of"""
+    """ the current editor with a string. The enclosing string is"""
     """ selectable via a configurable menu hierarchy."""
+)
 needsRestart = False
 pyqtApi = 2
-python2Compatible = True
 # End-Of-Header
 
 error = ""
@@ -50,10 +48,10 @@
     @return reference to the configuration page
     """
     global selectionEncloserPluginObject
-    from SelectionEncloser.ConfigurationPage.SelectionEncloserPage import \
+    from SelectionEncloser.ConfigurationPage.SelectionEncloserPage import (
         SelectionEncloserPage
-    page = SelectionEncloserPage(selectionEncloserPluginObject)
-    return page
+    )
+    return SelectionEncloserPage(selectionEncloserPluginObject)
     
 
 def getConfigData():
@@ -70,7 +68,7 @@
         lightness = palette.color(QPalette.Window).lightness()
         usesDarkPalette = lightness <= 128
     if usesDarkPalette:
-       iconSuffix = "dark"
+        iconSuffix = "dark"
     else:
         iconSuffix = "light"
     

eric ide

mercurial