src/eric7/PipInterface/Pip.py

branch
eric7
changeset 9851
ec12090e9cd9
parent 9850
20c49b517679
child 9940
a57c188857e9
child 10084
125166c6b66c
diff -r 20c49b517679 -r ec12090e9cd9 src/eric7/PipInterface/Pip.py
--- a/src/eric7/PipInterface/Pip.py	Sun Mar 05 17:07:49 2023 +0100
+++ b/src/eric7/PipInterface/Pip.py	Mon Mar 06 09:50:18 2023 +0100
@@ -1047,15 +1047,12 @@
     ## License handling methods below
     #######################################################################
 
-    def getLicenses(self, envName, summary=False):
+    def getLicenses(self, envName):
         """
         Public method to get the licenses per package for a given environment.
 
         @param envName name of the environment to get the licenses for
         @type str
-        @param summary flag indicating to get a summary listing (defaults to
-            False)
-        @type bool (optional)
         @return list of dictionaries containing the license and version per
             package
         @rtype dict
@@ -1074,8 +1071,6 @@
                     "--with-urls",
                     "--with-description",
                 ]
-                if summary:
-                    args.append("--summary-by-license")
 
                 proc = QProcess()
                 proc.start(interpreter, args)
@@ -1089,16 +1084,3 @@
                         licenses = json.loads(output)
 
         return licenses
-
-    def getLicensesSummary(self, envName):
-        """
-        Public method to get a summary of licenses found in a given
-        environment.
-
-        @param envName name of the environment to get the licenses summary for
-        @type str
-        @return list of dictionaries containing the license and the count of
-            packages
-        @rtype dict
-        """
-        return self.getLicenses(envName, summary=True)

eric ide

mercurial