--- a/DataViews/CodeMetrics.py Fri Oct 04 17:48:17 2013 +0200 +++ b/DataViews/CodeMetrics.py Sun Oct 06 17:27:53 2013 +0200 @@ -108,9 +108,12 @@ """ Constructor """ - self.identifiers = [] # list of identifiers in order of appearance - self.active = [('TOTAL ', -1, 0)] # stack of active identifiers and indent levels - self.counters = {} # counters per identifier + self.identifiers = [] + # list of identifiers in order of appearance + self.active = [('TOTAL ', -1, 0)] + # stack of active identifiers and indent levels + self.counters = {} + # counters per identifier self.indent_level = 0 def indent(self, tok): @@ -253,7 +256,8 @@ summarize(total, 'bytes', len(text)) summarize(total, 'comments', stats.getCounter('TOTAL ', 'comments')) summarize(total, 'empty lines', stats.getCounter('TOTAL ', 'empty')) - summarize(total, 'non-commentary lines', stats.getCounter('TOTAL ', 'nloc')) + summarize(total, 'non-commentary lines', + stats.getCounter('TOTAL ', 'nloc')) return stats