~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-29 02:31:34 UTC
  • Revision ID: mbp@sourcefrog.net-20050329023134-2d1eb96c55831937
check size and sha1 of files retrieved from the tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
    b = f.read()
124
124
    s.update(b)
125
125
    size = len(b)
126
 
    f.close()
127
126
    return {'size': size,
128
127
            'sha1': s.hexdigest()}
129
128