DataViews/CodeMetrics.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3021
801289962f4e
child 3145
a9de05d4a22f
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
177 def dump(self): 177 def dump(self):
178 """ 178 """
179 Public method used to format and print the collected statistics. 179 Public method used to format and print the collected statistics.
180 """ 180 """
181 label_len = 79 - len(spacer) - 6 * 6 181 label_len = 79 - len(spacer) - 6 * 6
182 print(spacer + "FUNCTION / CLASS".ljust(label_len) + \ 182 print(spacer + "FUNCTION / CLASS".ljust(label_len) +
183 " START END LINES NLOC COMM EMPTY") 183 " START END LINES NLOC COMM EMPTY")
184 for id in self.identifiers + ['TOTAL ']: 184 for id in self.identifiers + ['TOTAL ']:
185 label = id 185 label = id
186 counters = self.counters.get(id, {}) 186 counters = self.counters.get(id, {})
187 msg = spacer + label.ljust(label_len) 187 msg = spacer + label.ljust(label_len)
188 188

eric ide

mercurial