src/eric7/Project/ProjectTranslationsBrowser.py

branch
eric7
changeset 10239
63fe209a1e71
parent 10231
3a82c1c47b57
child 10242
762010721872
equal deleted inserted replaced
10238:9ea4634a697e 10239:63fe209a1e71
1145 timeout=0, 1145 timeout=0,
1146 ) 1146 )
1147 1147
1148 for index in range(len(self.__pylupdateProcesses)): 1148 for index in range(len(self.__pylupdateProcesses)):
1149 if proc is self.__pylupdateProcesses[index][0]: 1149 if proc is self.__pylupdateProcesses[index][0]:
1150 tmpProjectFile = self.__pylupdateProcesses[index][1] 1150 processData = self.__pylupdateProcesses[index]
1151 tmpProjectFile = processData[1]
1151 if tmpProjectFile: 1152 if tmpProjectFile:
1152 with contextlib.suppress(OSError): 1153 with contextlib.suppress(OSError):
1153 self.__tmpProjects.remove(tmpProjectFile) 1154 self.__tmpProjects.remove(tmpProjectFile)
1154 os.remove(tmpProjectFile) 1155 os.remove(tmpProjectFile)
1155 1156
1156 if self.__pylupdateProcesses[index][2]: 1157 if processData[2]:
1157 self.appendStdout.emit("".join(self.__pylupdateProcesses[index][2])) 1158 self.appendStdout.emit("".join(processData[2]))
1158 1159
1159 del self.__pylupdateProcesses[index] 1160 self.__pylupdateProcesses.remove(processData)
1160 break 1161 break
1161 1162
1162 if not self.__pylupdateProcesses: 1163 if not self.__pylupdateProcesses:
1163 # all done 1164 # all done
1164 self.pylupdateProcRunning = False 1165 self.pylupdateProcRunning = False

eric ide

mercurial