diff -r 1e62de075091 -r 825bf5861f89 PluginProjectDjangoTagsMenu.py --- a/PluginProjectDjangoTagsMenu.py Tue Jun 23 17:52:01 2020 +0200 +++ b/PluginProjectDjangoTagsMenu.py Tue Jun 23 17:52:32 2020 +0200 @@ -7,8 +7,6 @@ Module implementing the Django tags menu plugin. """ -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 = "ProjectDjangoTagsMenuPlugin" packageName = "ProjectDjangoTagsMenu" shortDescription = "Tags menu for Django projects." -longDescription = \ - """This plug-in adds a menu to select various tag templates to the""" \ +longDescription = ( + """This plug-in adds a menu to select various tag templates to the""" """ Django menu.""" +) needsRestart = False pyqtApi = 2 -python2Compatible = True # End-of-Header error = "" @@ -81,8 +79,8 @@ if pluginObject: djangoMenu = pluginObject.getMenu("main") - djangoDatabaseMenuAction = \ - pluginObject.getMenu("database").menuAction() + djangoDatabaseMenuAction = pluginObject.getMenu( + "database").menuAction() self.__menuAction = djangoMenu.insertMenu( djangoDatabaseMenuAction, self.__menu) self.__menuSeparator = djangoMenu.insertSeparator(