def create_md5()

in mozdownload/utils.py [0:0]


def create_md5(path):
    """Create the md5 hash of a file using the hashlib library."""
    m = hashlib.md5()
    # rb necessary to run correctly in windows.
    with open(path, "rb") as f:
        while True:
            data = f.read(8192)
            if not data:
                break
            m.update(data)

    return m.hexdigest()