示例#1
0
文件: tasks.py 项目: rhelmer/zamboni
def make_checksum(header_path, footer_path):
    ls = LocalFileStorage()
    raw_checksum = ls._open(header_path).read() + ls._open(footer_path).read()
    return hashlib.sha224(raw_checksum).hexdigest()
示例#2
0
def make_checksum(header_path, footer_path):
    ls = LocalFileStorage()
    footer = footer_path and ls._open(footer_path).read() or ''
    raw_checksum = ls._open(header_path).read() + footer
    return hashlib.sha224(raw_checksum).hexdigest()