src/eric7/VCS/__init__.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9299
e40589582f82
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/VCS/__init__.py
--- a/src/eric7/VCS/__init__.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/VCS/__init__.py	Wed Jul 13 14:55:47 2022 +0200
@@ -24,7 +24,7 @@
 def factory(vcs):
     """
     Modul factory function to generate the right vcs object.
-    
+
     @param vcs name of the VCS system to be used (string)
     @return the instantiated VCS object
     """
@@ -32,9 +32,8 @@
     if pluginManager is None:
         # that should not happen
         vc = None
-    
-    vc = pluginManager.getPluginObject("version_control", vcs,
-                                       maybeActive=True)
+
+    vc = pluginManager.getPluginObject("version_control", vcs, maybeActive=True)
     if vc is None:
         # try alternative vcs interfaces assuming, that there is a common
         # indicator for the alternatives
@@ -44,10 +43,11 @@
                     for vcsSystem, _vcsSystemDisplay in vcsData:
                         if vcsSystem != vcs:
                             vc = pluginManager.getPluginObject(
-                                "version_control", vcsSystem, maybeActive=True)
+                                "version_control", vcsSystem, maybeActive=True
+                            )
                             if vc is not None:
                                 return vc
-    
+
     return vc
 
 
@@ -57,15 +57,16 @@
 def getBasicHelper(project):
     """
     Module function to get a reference to the basic project helper singleton.
-    
+
     @param project reference to the project object (Project)
     @return reference to the basic VCS project helper singleton
         (VcsProjectHelper)
     """
     global VcsBasicHelperSingleton
-    
+
     if VcsBasicHelperSingleton is None:
         from .ProjectHelper import VcsProjectHelper
+
         VcsBasicHelperSingleton = VcsProjectHelper(None, project)
-    
+
     return VcsBasicHelperSingleton

eric ide

mercurial