[csw-devel] SF.net SVN: gar:[20801] csw/mgar/gar/v2/lib/python

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Apr 18 17:18:28 CEST 2013


Revision: 20801
          http://gar.svn.sourceforge.net/gar/?rev=20801&view=rev
Author:   wahwah
Date:     2013-04-18 15:18:28 +0000 (Thu, 18 Apr 2013)
Log Message:
-----------
pkgdb: Remove the silly PackageStatsMixin class

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/package_stats.py
    csw/mgar/gar/v2/lib/python/package_stats_test.py

Modified: csw/mgar/gar/v2/lib/python/package_stats.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_stats.py	2013-04-18 15:18:15 UTC (rev 20800)
+++ csw/mgar/gar/v2/lib/python/package_stats.py	2013-04-18 15:18:28 UTC (rev 20801)
@@ -53,14 +53,14 @@
   """A utility's output is bad, e.g. impossible to parse."""
 
 
-class PackageStatsMixin(object):
+class PackageStats(object):
   """Collects stats about a package and saves them.
 
   Takes care of processing data from a SVR4 package and returing them as data structures.
   """
 
   def __init__(self, srv4_pkg, stats_basedir=None, md5sum=None, debug=False):
-    super(PackageStatsMixin, self).__init__()
+    super(PackageStats, self).__init__()
     self.srv4_pkg = srv4_pkg
     self.md5sum = md5sum
     self.dir_format_pkg = None
@@ -516,8 +516,3 @@
       pbar.update(counter.next())
     pbar.finish()
     return data_list
-
-
-class PackageStats(PackageStatsMixin):
-  """Without the implicit database initialiation."""
-  pass

Modified: csw/mgar/gar/v2/lib/python/package_stats_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_stats_test.py	2013-04-18 15:18:15 UTC (rev 20800)
+++ csw/mgar/gar/v2/lib/python/package_stats_test.py	2013-04-18 15:18:28 UTC (rev 20801)
@@ -76,7 +76,7 @@
 class DatabaseIntegrationTest(test_base.SqlObjectTestMixin,
                               unittest.TestCase):
 
-  class TestPackageStats(package_stats.PackageStatsMixin):
+  class TestPackageStats(package_stats.PackageStats):
     pass
 
   class TestCatalog(checkpkg_lib.Catalog):

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list