def md5sum(file):
    m = hashlib.md5()
    while True:
        d = file.read(8096)
        if not d:
            break
        m.update(d)
    return m.hexdigest()
If the URI has an authority component, an exception is raised.
dataset/ETHPy150Open scrapy/scrapy/scrapy/utils/misc.py/md5sum--crossover with--dataset/ETHPy150Open ralphm/idavoll/idavoll/test/test_gateway.py/GetServiceAndNodeTest.test_authorityPresent