~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Martin Pool
  • Date: 2005-09-13 08:19:01 UTC
  • Revision ID: mbp@sourcefrog.net-20050913081901-9b8d449d97e9f23d
- split sha_strings into osutils

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
    return s.hexdigest()
211
211
 
212
212
 
 
213
 
 
214
def sha_strings(strings):
 
215
    """Return the sha-1 of concatenation of strings"""
 
216
    s = sha.new()
 
217
    map(s.update, strings)
 
218
    return s.hexdigest()
 
219
 
 
220
 
213
221
def sha_string(f):
214
222
    import sha
215
223
    s = sha.new()