]> git.donarmstrong.com Git - lilypond.git/commitdiff
thinko.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 22 Jan 2007 23:59:47 +0000 (00:59 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 22 Jan 2007 23:59:47 +0000 (00:59 +0100)
buildscripts/coverage.py

index 668b6a0043fa4c3d65f6158c69b416ff23e0df6b..c3cf34b80adb87c9955ac29041f247a239125854 100644 (file)
@@ -70,7 +70,7 @@ class Chunk:
             sys.stdout.write ('%8s:%8d:%s' % (cov, n, l))
             
     def uncovered_score (self):
-        return length (self)
+        return len (self)
     
 class SchemeChunk (Chunk):
     def uncovered_score (self):
@@ -85,7 +85,7 @@ def read_gcov (f):
     ls = []
 
     in_lines = [l for l in open (f).readlines ()]
-    (count_len, line_num_len) = tuple (map (len, in_lines[0].split':')[:2]))
+    (count_len, line_num_len) = tuple (map (len, in_lines[0].split (':')[:2]))
     
     for l in in_lines:
         c = l[:count_len].strip ()