~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/testament.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-12 07:53:55 UTC
  • mfrom: (5849.1.3 use-sha-string)
  • Revision ID: pqm@pqm.ubuntu.com-20110512075355-oukrddgzhx2xkkfi
(jelmer) Use osutils.sha_string / osutils.sha_strings in a couple more
 places. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
from bzrlib.osutils import (
75
75
    contains_whitespace,
76
76
    contains_linebreaks,
77
 
    sha,
 
77
    sha_strings,
78
78
    )
79
79
from bzrlib.tree import Tree
80
80
 
209
209
        return r
210
210
 
211
211
    def as_sha1(self):
212
 
        s = sha()
213
 
        map(s.update, self.as_text_lines())
214
 
        return s.hexdigest()
 
212
        return sha_strings(self.as_text_lines())
215
213
 
216
214
 
217
215
class StrictTestament(Testament):