def map_input_stream(stream, size, url, params): from disco.func import string_input_stream from disco.util import urlsplit scheme, netloc, path = urlsplit(url) assert netloc.host != Task.host return string_input_stream(str(netloc), size, url, params)
def map_input_stream(stream, size, url, params): scheme, netloc, path = urlsplit(url) assert netloc.host == Task.host return string_input_stream(str(netloc), size, url, params)