3 # Copyright (C) 2009 The Android Open Source Project
5 # Licensed under the Apache License, Version 2.0 (the 'License');
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an 'AS IS' BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
18 import cgi, os, string, sys
39 lines = map(string.split, lines)
40 lines = map(lambda (x,y): (y,int(x)), lines)
42 if not data.has_key(fn):
47 for fn,sizes in data.iteritems():
49 for i in range(0,index):
55 rows = sorted(rows, key=lambda x: x[0])
58 <style type="text/css">
67 background-color: #ffffdd;
70 background-color: #ffffcc;
73 background-color: #ffcccc;
76 background-color: #99ccff;
85 combo = input.split(os.path.sep)[1]
86 print " <td class='fn'>%s</td>" % cgi.escape(combo)
93 print " <td class='z'> </td>"
94 elif IsDifferent(row[1:]):
95 print " <td class='d'>%d</td>" % sz
97 print " <td class='sz'>%d</td>" % sz
98 print " <td class='fn'>%s</td>" % cgi.escape(row[0])
101 print "</body></html>"
103 if __name__ == '__main__':