--- a/PluginWizardDataUriEncoder.py Wed Jan 01 11:59:05 2020 +0100 +++ b/PluginWizardDataUriEncoder.py Tue Jun 23 19:56:12 2020 +0200 @@ -7,8 +7,6 @@ Module implementing the base64 data URI encoder wizard plug-in. """ -from __future__ import unicode_literals - import os from PyQt5.QtCore import QObject, QTranslator @@ -23,16 +21,16 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "2.0.4" +version = "3.0.0" className = "WizardDataUriEncoderPlugin" packageName = "WizardDataUriEncoder" shortDescription = "Wizard for the creation of code for a base64 data URI." -longDescription = \ - """This plug-in implements a wizard to generate code for""" \ +longDescription = ( + """This plug-in implements a wizard to generate code for""" """ base64 encoded data URIs.""" +) needsRestart = False pyqtApi = 2 -python2Compatible = True # End-of-Header error = "" @@ -136,13 +134,14 @@ editor = e5App().getObject("ViewManager").activeWindow() if editor is None: - E5MessageBox.critical( - self.__ui, - self.tr('No current editor'), - self.tr('Please open or create a file first.')) + E5MessageBox.critical( + self.__ui, + self.tr('No current editor'), + self.tr('Please open or create a file first.')) else: - from WizardDataUriEncoder.DataUriEncoderWizardDialog import \ + from WizardDataUriEncoder.DataUriEncoderWizardDialog import ( DataUriEncoderWizardDialog + ) dlg = DataUriEncoderWizardDialog(None) if dlg.exec_() == QDialog.Accepted: code = dlg.getCode()