src/eric7/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelveDataDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelveDataDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelveDataDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -17,10 +17,11 @@
     """
     Class implementing a dialog to enter the data for a shelve operation.
     """
+
     def __init__(self, version, parent=None):
         """
         Constructor
-        
+
         @param version Mercurial version
         @type tuple of three int
         @param parent reference to the parent widget
@@ -28,21 +29,21 @@
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         self.__initialDateTime = QDateTime.currentDateTime()
         self.dateTimeEdit.setDateTime(self.__initialDateTime)
-        
+
         if version < (5, 0, 0):
             self.keepCheckBox.setChecked(False)
             self.keepCheckBox.hide()
-        
+
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
-    
+
     def getData(self):
         """
         Public method to get the user data.
-        
+
         @return tuple containing the name, date, message, a flag indicating
             to add/remove new/missing files and a flag indicating to keep the
             shelved changes in the working directory
@@ -50,8 +51,8 @@
         """
         dateTime = (
             self.dateTimeEdit.dateTime()
-            if self.dateTimeEdit.dateTime() != self.__initialDateTime else
-            QDateTime()
+            if self.dateTimeEdit.dateTime() != self.__initialDateTime
+            else QDateTime()
         )
         return (
             self.nameEdit.text().replace(" ", "_"),

eric ide

mercurial