if dest:
dest.write(response.read())
return "",0,""
# portage likes strings
resp = response.read()
if isinstance(resp, bytes):
resp=str(resp, encoding='latin-1')
return response.read(),0,""
return resp,0,""
def match_in_array(array, prefix="", suffix="", match_both=1, allow_overlap=0):