~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to diffstat.py

  • Committer: Michael Ellerman
  • Date: 2005-10-24 15:29:43 UTC
  • mto: (0.3.1 shelf-dev) (325.1.2 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: michael@ellerman.id.au-20051024152943-96801381e8ca3cfe
Rename Diffstat to DiffStat, looks better :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
3
 
class Diffstat(object):
 
3
class DiffStat(object):
4
4
    def __init__(self, lines):
5
5
        self.maxname = 0
6
6
        self.maxtotal = 0
81
81
 
82
82
if __name__ == '__main__':
83
83
    import sys
84
 
    ds = Diffstat(sys.stdin.readlines())
 
84
    ds = DiffStat(sys.stdin.readlines())
85
85
    print ds