Tue, 08 Nov 2022 18:18:42 +0100
Changed the browser model to allow standard Python extension if none are configured.
src/eric7/UI/BrowserModel.py | file | annotate | diff | comparison | revisions |
--- a/src/eric7/UI/BrowserModel.py Tue Nov 08 18:18:01 2022 +0100 +++ b/src/eric7/UI/BrowserModel.py Tue Nov 08 18:18:42 2022 +0100 @@ -1292,8 +1292,13 @@ @return flag indicating a Python3 file @rtype bool """ - return self.fileext in Preferences.getPython("Python3Extensions") or ( - self.fileext == "" and self.sourceLanguage == "Python3" + return ( + self.fileext in Preferences.getPython("Python3Extensions") + or (self.fileext == "" and self.sourceLanguage == "Python3") + or ( + not Preferences.getPython("Python3Extensions") + and self.fileext in (".py", ".pyw") + ) ) def isCythonFile(self):