--- a/src/eric7/HexEdit/HexEditMainWindow.py Tue Dec 06 16:57:54 2022 +0100 +++ b/src/eric7/HexEdit/HexEditMainWindow.py Tue Dec 06 17:35:41 2022 +0100 @@ -245,9 +245,7 @@ "hexEditor_file_save_readable", ) self.saveReadableAct.setStatusTip( - self.tr( - "Save the current binary data to a new file in a readable" " format" - ) + self.tr("Save the current binary data to a new file in a readable format") ) self.saveReadableAct.setWhatsThis( self.tr( @@ -270,9 +268,7 @@ ) self.closeAct.setStatusTip(self.tr("Close the current hex editor window")) self.closeAct.setWhatsThis( - self.tr( - """<b>Close</b><p>Closes the current hex editor window.</p>""" - ) + self.tr("""<b>Close</b><p>Closes the current hex editor window.</p>""") ) self.closeAct.triggered.connect(self.close) self.__actions.append(self.closeAct) @@ -320,9 +316,7 @@ "hexEditor_file_quit", ) self.exitAct.setStatusTip(self.tr("Quit the hex editor")) - self.exitAct.setWhatsThis( - self.tr("""<b>Quit</b><p>Quit the hex editor.</p>""") - ) + self.exitAct.setWhatsThis(self.tr("""<b>Quit</b><p>Quit the hex editor.</p>""")) if not self.__fromEric: self.exitAct.triggered.connect(self.__closeAll) self.__actions.append(self.exitAct) @@ -447,9 +441,7 @@ ) self.selectAllAct.setStatusTip(self.tr("Select the complete binary data")) self.selectAllAct.setWhatsThis( - self.tr( - """<b>Select All</b><p>Selects the complete binary data.</p>""" - ) + self.tr("""<b>Select All</b><p>Selects the complete binary data.</p>""") ) self.selectAllAct.triggered.connect(self.__editor.selectAll) self.__actions.append(self.selectAllAct) @@ -464,9 +456,7 @@ ) self.deselectAllAct.setStatusTip(self.tr("Deselect all binary data")) self.deselectAllAct.setWhatsThis( - self.tr( - """<b>Deselect All</b><p>Deselect all all binary data.</p>""" - ) + self.tr("""<b>Deselect All</b><p>Deselect all all binary data.</p>""") ) self.deselectAllAct.triggered.connect(self.__editor.deselectAll) self.__actions.append(self.deselectAllAct) @@ -1123,9 +1113,9 @@ EricMessageBox.warning( self, self.tr("eric Hex Editor"), - self.tr( - "<p>Cannot read file <b>{0}</b>.</p>" "<p>Reason: {1}</p>" - ).format(fileName, str(err)), + self.tr("<p>Cannot read file <b>{0}</b>.</p><p>Reason: {1}</p>").format( + fileName, str(err) + ), ) return @@ -1216,7 +1206,7 @@ self, self.tr("Save binary file"), self.tr( - "<p>The file <b>{0}</b> already exists." " Overwrite it?</p>" + "<p>The file <b>{0}</b> already exists. Overwrite it?</p>" ).format(fileName), icon=EricMessageBox.Warning, ) @@ -1244,7 +1234,7 @@ self, self.tr("eric Hex Editor"), self.tr( - "<p>Cannot write file <b>{0}</b>.</p>" "<p>Reason: {1}</p>" + "<p>Cannot write file <b>{0}</b>.</p><p>Reason: {1}</p>" ).format(fileName, str(err)), ) self.__checkActions() @@ -1293,7 +1283,7 @@ self, self.tr("Save to readable file"), self.tr( - "<p>The file <b>{0}</b> already exists." " Overwrite it?</p>" + "<p>The file <b>{0}</b> already exists. Overwrite it?</p>" ).format(fpath), icon=EricMessageBox.Warning, ) @@ -1313,7 +1303,7 @@ self, self.tr("eric Hex Editor"), self.tr( - "<p>Cannot write file <b>{0}</b>.</p>" "<p>Reason: {1}</p>" + "<p>Cannot write file <b>{0}</b>.</p><p>Reason: {1}</p>" ).format(fpath, str(err)), ) return