コード例 #1
0
    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)
コード例 #2
0
 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)
コード例 #3
0
 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)
コード例 #4
0
 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)