changeset 995:f2921340d625

Improve formatting of missing preprocessed data.
author Martin Geisler <mg@daimi.au.dk>
date Thu, 02 Oct 2008 12:14:58 +0200
parents 383e6bfb4863
children 5d64a7bf429c
files apps/benchmark.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/apps/benchmark.py	Thu Oct 02 11:46:35 2008 +0200
+++ b/apps/benchmark.py	Thu Oct 02 12:14:58 2008 +0200
@@ -57,7 +57,7 @@
 import time
 from optparse import OptionParser
 import operator
-from pprint import pprint
+from pprint import pformat
 
 from twisted.internet import reactor
 
@@ -219,7 +219,9 @@
 
         if self.rt._needed_data:
             print "Missing pre-processed data:"
-            pprint(self.rt._needed_data)
+            for (func, args), pcs in self.rt._needed_data.iteritems():
+                print "* %s%s:" % (func, args)
+                print "  " + pformat(pcs).replace("\n", "\n  ")
 
         self.rt.shutdown()