eric6/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py

changeset 7257
c4d0cac9b5c9
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 4ef3b78ebb4e -r c4d0cac9b5c9 eric6/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py	Sat Sep 21 20:30:56 2019 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py	Sat Sep 21 22:03:03 2019 +0200
@@ -43,10 +43,12 @@
                                          parent, name)
         
         # instantiate the extensions
-        from .ShelveExtension.ProjectBrowserHelper import \
+        from .ShelveExtension.ProjectBrowserHelper import (
             ShelveProjectBrowserHelper
-        from .LargefilesExtension.ProjectBrowserHelper import \
+        )
+        from .LargefilesExtension.ProjectBrowserHelper import (
             LargefilesProjectBrowserHelper
+        )
         self.__extensions = {
             "shelve": ShelveProjectBrowserHelper(
                 vcsObject, browserObject, projectObject),
@@ -60,8 +62,9 @@
                 self.__extensions[extension].menuTitle()] = extension
         self.__extensionMenus = {}
         for extension in self.__extensions:
-            self.__extensionMenus[extension] = \
+            self.__extensionMenus[extension] = (
                 self.__extensions[extension].initMenus()
+            )
     
     def __showExtensionMenu(self, key, controlled):
         """
@@ -807,8 +810,9 @@
         Private slot called by the context menu to remove the selected file
         from the Mercurial repository leaving a copy in the project directory.
         """
-        from UI.DeleteFilesConfirmationDialog import \
+        from UI.DeleteFilesConfirmationDialog import (
             DeleteFilesConfirmationDialog
+        )
         if self.isTranslationsBrowser:
             items = self.browser.getSelectedItems([ProjectBrowserFileItem])
             names = [itm.fileName() for itm in items]
@@ -844,5 +848,4 @@
         """
         Private method to open the configuration dialog.
         """
-        e5App().getObject("UserInterface")\
-            .showPreferences("zzz_mercurialPage")
+        e5App().getObject("UserInterface").showPreferences("zzz_mercurialPage")

eric ide

mercurial