src/eric7/Plugins/VcsPlugins/vcsGit/GitChangeRemoteUrlDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9473
3f23dbf37dbe
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/Plugins/VcsPlugins/vcsGit/GitChangeRemoteUrlDialog.py
--- a/src/eric7/Plugins/VcsPlugins/vcsGit/GitChangeRemoteUrlDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsGit/GitChangeRemoteUrlDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -17,10 +17,11 @@
     """
     Class implementing a dialog to change the URL of a remote git repository.
     """
+
     def __init__(self, remoteName, remoteUrl, parent=None):
         """
         Constructor
-        
+
         @param remoteName name of the remote repository
         @type str
         @param remoteUrl URL of the remote repository
@@ -30,21 +31,20 @@
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         url = QUrl(remoteUrl)
         self.__userInfo = url.userInfo()
-        
+
         self.nameEdit.setText(remoteName)
-        self.urlEdit.setText(
-            url.toString(QUrl.UrlFormattingOption.RemoveUserInfo))
-        
+        self.urlEdit.setText(url.toString(QUrl.UrlFormattingOption.RemoveUserInfo))
+
         self.__updateOK()
-        
+
         self.newUrlEdit.setFocus(Qt.FocusReason.OtherFocusReason)
-        
+
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
-    
+
     def __updateOK(self):
         """
         Private method to update the status of the OK button.
@@ -52,26 +52,26 @@
         self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
             bool(self.newUrlEdit.text())
         )
-    
+
     @pyqtSlot(str)
     def on_newUrlEdit_textChanged(self, txt):
         """
         Private slot handling changes of the entered URL.
-        
+
         @param txt current text
         @type str
         """
         self.__updateOK()
-    
+
     def getData(self):
         """
         Public method to get the entered data.
-        
+
         @return tuple with name and new URL of the remote repository
         @rtype tuple of (str, str)
         """
         url = QUrl.fromUserInput(self.newUrlEdit.text())
         if self.__userInfo:
             url.setUserInfo(self.__userInfo)
-        
+
         return self.nameEdit.text(), url.toString()

eric ide

mercurial