eric6/Plugins/VcsPlugins/vcsGit/git.py

changeset 8234
fcb6b4b96274
parent 8222
5994b80b8760
child 8240
93b8a353c4bf
--- a/eric6/Plugins/VcsPlugins/vcsGit/git.py	Tue Apr 13 17:49:05 2021 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsGit/git.py	Tue Apr 13 18:02:59 2021 +0200
@@ -772,10 +772,7 @@
         
         @param name file/directory name to be diffed (string)
         """
-        if isinstance(name, list):
-            names = name[:]
-        else:
-            names = [name]
+        names = name[:] if isinstance(name, list) else [name]
         for nam in names:
             if os.path.isfile(nam):
                 editor = e5App().getObject("ViewManager").getOpenEditor(nam)

eric ide

mercurial