--- a/eric6/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelveDataDialog.py Fri Apr 02 11:59:41 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelveDataDialog.py Sat May 01 14:27:20 2021 +0200 @@ -26,7 +26,7 @@ @param parent reference to the parent widget @type QWidget """ - super(HgShelveDataDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__initialDateTime = QDateTime.currentDateTime() @@ -48,10 +48,11 @@ shelved changes in the working directory @rtype tuple of (str, QDateTime, str, bool, bool) """ - if self.dateTimeEdit.dateTime() != self.__initialDateTime: - dateTime = self.dateTimeEdit.dateTime() - else: - dateTime = QDateTime() + dateTime = ( + self.dateTimeEdit.dateTime() + if self.dateTimeEdit.dateTime() != self.__initialDateTime else + QDateTime() + ) return ( self.nameEdit.text().replace(" ", "_"), dateTime,