def get_file_from_http(url):
    print('downloading from %s ' % url)
    try:
        ret = requests.get(url, timeout=300)
        if ret.status_code != requests.codes.ok:
            print('error on reading %s ' % url)
            sys.exit(-1)
    except Exception as ex:
        print((url, str(ex)) % 'Cannot download %s, error %s')
        sys.exit(-1)
    return ret.content.splitlines(True)
dataset/ETHPy150Open facebook/fbpush/fbpush/main.py/get_file_from_http/swapped operands of `%`