--- a/PluginProjectPyramid.py Sat Dec 23 15:48:53 2023 +0100 +++ b/PluginProjectPyramid.py Sat Dec 23 17:16:21 2023 +0100 @@ -43,7 +43,7 @@ pyramidPluginObject = None -def createPyramidPage(configDlg): +def createPyramidPage(configDlg): # noqa: U100 """ Module function to create the Pyramid configuration page. @@ -52,8 +52,9 @@ @return reference to the configuration page @rtype PyramidPage """ + from ProjectPyramid.ConfigurationPage.PyramidPage import PyramidPage + global pyramidPluginObject - from ProjectPyramid.ConfigurationPage.PyramidPage import PyramidPage return PyramidPage(pyramidPluginObject) @@ -196,27 +197,10 @@ progLanguages=self.__supportedVariants[:], ) - try: - # backward compatibility for eric7 < 22.12 - from eric7.Project.ProjectBrowser import ( - FormsBrowserFlag, - OthersBrowserFlag, - SourcesBrowserFlag, - TranslationsBrowserFlag, - ) - - Preferences.setProjectBrowserFlagsDefault( - "Pyramid", - SourcesBrowserFlag - | FormsBrowserFlag - | TranslationsBrowserFlag - | OthersBrowserFlag, - ) - except ImportError: - Preferences.setProjectBrowsersDefault( - "Pyramid", - ("sources", "forms", "translations", "others"), - ) + Preferences.setProjectBrowsersDefault( + "Pyramid", + ("sources", "forms", "translations", "others"), + ) if self.__ericProject.isOpen(): self.__projectOpened() @@ -475,3 +459,7 @@ import cookiecutter # __IGNORE_WARNING__ except ImportError: pipInstall(["cookiecutter"]) + + +# +# eflag: noqa = U200