eric6/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py

changeset 7260
4cc6f121119a
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py	Mon Sep 23 19:22:12 2019 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py	Mon Sep 23 20:03:20 2019 +0200
@@ -12,8 +12,9 @@
 
 from PyQt5.QtCore import QMutexLocker, Qt, pyqtSlot
 from PyQt5.QtGui import QCursor
-from PyQt5.QtWidgets import QHeaderView, QDialog, QApplication, \
-    QDialogButtonBox, QTreeWidgetItem
+from PyQt5.QtWidgets import (
+    QHeaderView, QDialog, QApplication, QDialogButtonBox, QTreeWidgetItem
+)
 
 from E5Gui import E5MessageBox
 
@@ -62,12 +63,11 @@
         self.__ignoreExpand = False
         
         self.client = self.vcs.getClient()
-        self.client.callback_cancel = \
-            self._clientCancelCallback
-        self.client.callback_get_login = \
-            self._clientLoginCallback
-        self.client.callback_ssl_server_trust_prompt = \
+        self.client.callback_cancel = self._clientCancelCallback
+        self.client.callback_get_login = self._clientLoginCallback
+        self.client.callback_ssl_server_trust_prompt = (
             self._clientSslServerTrustPromptCallback
+        )
         
         self.show()
         QApplication.processEvents()
@@ -164,8 +164,10 @@
                 firstTime = parent == self.repoTree
                 # dirent elements are all unicode in Python 2
                 for dirent, _lock in entries:
-                    if (firstTime and dirent["path"] != url) or \
-                       (parent != self.repoTree and dirent["path"] == url):
+                    if (
+                        (firstTime and dirent["path"] != url) or
+                        (parent != self.repoTree and dirent["path"] == url)
+                    ):
                         continue
                     if firstTime:
                         if dirent["repos_path"] != "/":
@@ -181,8 +183,9 @@
                             itm.setExpanded(True)
                             parent = itm
                             urlPart = repoUrl
-                            for element in \
-                                    dirent["repos_path"].split("/")[:-1]:
+                            for element in (
+                                dirent["repos_path"].split("/")[:-1]
+                            ):
                                 if element:
                                     urlPart = "{0}/{1}".format(urlPart,
                                                                element)

eric ide

mercurial