--- a/eric6/Network/IRC/IrcNetworkWidget.py Fri Apr 02 11:59:41 2021 +0200 +++ b/eric6/Network/IRC/IrcNetworkWidget.py Sat May 01 14:27:20 2021 +0200 @@ -49,7 +49,7 @@ @param parent reference to the parent widget (QWidget) """ - super(IrcNetworkWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.connectButton.setIcon(UI.PixmapCache.getIcon("ircConnect")) @@ -444,10 +444,11 @@ fname = Utilities.toNativeSeparators(fname) try: - if ext.lower() in ["htm", "html"]: - txt = self.messages.toHtml() - else: - txt = self.messages.toPlainText() + txt = ( + self.messages.toHtml() + if ext.lower() in ["htm", "html"] else + self.messages.toPlainText() + ) with open(fname, "w", encoding="utf-8") as f: f.write(txt) except OSError as err: