--- a/src/eric7/Project/Project.py Thu Feb 22 16:26:46 2024 +0100 +++ b/src/eric7/Project/Project.py Thu Feb 22 16:34:43 2024 +0100 @@ -1348,9 +1348,7 @@ return else: fn1, _ext = os.path.splitext(os.path.basename(self.pfile)) - fn = os.path.join( - self.getProjectManagementDir(), f"{fn1}{indicator}.esj" - ) + fn = os.path.join(self.getProjectManagementDir(), f"{fn1}{indicator}.esj") if not os.path.exists(fn): return @@ -1385,9 +1383,7 @@ ) else: fn1, _ext = os.path.splitext(os.path.basename(self.pfile)) - fn = os.path.join( - self.getProjectManagementDir(), f"{fn1}{indicator}.esj" - ) + fn = os.path.join(self.getProjectManagementDir(), f"{fn1}{indicator}.esj") self.__sessionFile.writeFile(fn) @@ -1836,22 +1832,20 @@ qmFile = self.__binaryTranslationFile(langFile) if qmFile: if FileSystemUtilities.isRemoteFileName(self.ppath): - if ( - qmFile not in self.__pdata["TRANSLATIONS"] - and self.__remotefsInterface.exists( - self.__remotefsInterface.join(self.ppath, qmFile) - ) + if qmFile not in self.__pdata[ + "TRANSLATIONS" + ] and self.__remotefsInterface.exists( + self.__remotefsInterface.join(self.ppath, qmFile) ): self.appendFile(qmFile) if tbPath: qmFile = self.__remotefsInterface.join( tbPath, self.__remotefsInterface.basename(qmFile) ) - if ( - qmFile not in self.__pdata["TRANSLATIONS"] - and self.__remotefsInterface.exists( - self.__remotefsInterface.join(self.ppath, qmFile) - ) + if qmFile not in self.__pdata[ + "TRANSLATIONS" + ] and self.__remotefsInterface.exists( + self.__remotefsInterface.join(self.ppath, qmFile) ): self.appendFile(qmFile) else: @@ -1861,10 +1855,9 @@ self.appendFile(qmFile) if tbPath: qmFile = os.path.join(tbPath, os.path.basename(qmFile)) - if ( - qmFile not in self.__pdata["TRANSLATIONS"] - and os.path.exists(os.path.join(self.ppath, qmFile)) - ): + if qmFile not in self.__pdata[ + "TRANSLATIONS" + ] and os.path.exists(os.path.join(self.ppath, qmFile)): self.appendFile(qmFile) def removeLanguageFile(self, langFile): @@ -4342,11 +4335,7 @@ @return flag indicating membership @rtype bool """ - newfn = ( - fn - if FileSystemUtilities.isRemoteFileName(fn) - else os.path.abspath(fn) - ) + newfn = fn if FileSystemUtilities.isRemoteFileName(fn) else os.path.abspath(fn) newfn = self.getRelativePath(newfn) if newfn in self.__pdata[group] or ( group == "OTHERS" @@ -7447,5 +7436,6 @@ if fn: self.openProject(fn=fn) + # # eflag: noqa = M601