Really should test better...
authorDan White <dan@whiteaudio.com>
Thu, 3 Feb 2011 15:45:40 +0000 (09:45 -0600)
committerDan White <dan@whiteaudio.com>
Thu, 3 Feb 2011 15:45:40 +0000 (09:45 -0600)
TimeSampleHistogram

index dfb5702c2d2e506862329b9430d7b192f4691c73..cbc7348f93461727765d395746f31ea06a840e2d 100755 (executable)
@@ -145,10 +145,10 @@ else:
 files = [f for f in os.listdir(os.environ['HOME'])
          if f.startswith('.timeSampler') and not f.endswith('.gz')]
 
-hist = defaultdict(int(1))
-histHier = defaultdict(int(1))
-histGtd = defaultdict(int(1))
-histOther = defaultdict(int(1))
+hist = defaultdict(lambda: 1)
+histHier = defaultdict(lambda: 1)
+histGtd = defaultdict(lambda: 1)
+histOther = defaultdict(lambda: 1)
 for file in files:
     f = open(os.environ['HOME'] + '/' + file, 'r')
     for line in f.readlines():