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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Dec 29 21:09:44 CET 2010


Revision: 12125
          http://gar.svn.sourceforge.net/gar/?rev=12125&view=rev
Author:   wahwah
Date:     2010-12-29 20:09:44 +0000 (Wed, 29 Dec 2010)

Log Message:
-----------
checkpkg: Using pprint.pformat for long lists

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

Modified: csw/mgar/gar/v2/lib/python/checkpkg_lib.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2010-12-29 20:09:08 UTC (rev 12124)
+++ csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2010-12-29 20:09:44 UTC (rev 12125)
@@ -349,10 +349,7 @@
     if file_path in self.pkgs_by_file:
       for pkg in self.pkgs_by_file[file_path]:
         pkgs.add(pkg)
-    if len(pkgs) < 6:
-      logging_response = pkgs
-    else:
-      logging_response = pprint.pformat(pkgs)
+    logging_response = pprint.pformat(pkgs)
     logging.debug("GetPkgByPath(%s).AndReturn(%s)"
                   % (file_path, logging_response))
     return pkgs


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