viff

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 diff
     1.1 --- a/apps/benchmark.py	Thu Oct 02 11:46:35 2008 +0200
     1.2 +++ b/apps/benchmark.py	Thu Oct 02 12:14:58 2008 +0200
     1.3 @@ -57,7 +57,7 @@
     1.4  import time
     1.5  from optparse import OptionParser
     1.6  import operator
     1.7 -from pprint import pprint
     1.8 +from pprint import pformat
     1.9  
    1.10  from twisted.internet import reactor
    1.11  
    1.12 @@ -219,7 +219,9 @@
    1.13  
    1.14          if self.rt._needed_data:
    1.15              print "Missing pre-processed data:"
    1.16 -            pprint(self.rt._needed_data)
    1.17 +            for (func, args), pcs in self.rt._needed_data.iteritems():
    1.18 +                print "* %s%s:" % (func, args)
    1.19 +                print "  " + pformat(pcs).replace("\n", "\n  ")
    1.20  
    1.21          self.rt.shutdown()
    1.22