Home
last modified time | relevance | path

Searched refs:urlparse (Results 1 – 25 of 135) sorted by relevance

123456

/external/python/cpython2/Lib/test/
Dtest_urlparse.py3 import urlparse
73 result = urlparse.urlparse(url)
79 result2 = urlparse.urlunparse(result)
85 result3 = urlparse.urlparse(result.geturl())
100 result = urlparse.urlsplit(url)
105 result2 = urlparse.urlunsplit(result)
110 result3 = urlparse.urlsplit(result.geturl())
125 result = urlparse.parse_qsl(orig, keep_blank_values=True)
128 result = urlparse.parse_qsl(orig, keep_blank_values=False)
134 result = urlparse.parse_qs(orig, keep_blank_values=True)
[all …]
/external/python/httplib2/python2/
Dhttplib2test.py20 import urlparse
345 uri = urlparse.urljoin(
355 uri = urlparse.urljoin(base, "methods/method_reflector.cgi")
361 uri = urlparse.urljoin(base, "methods/method_reflector.cgi")
379 uri = urlparse.urljoin(base, "304/test_etag.txt")
386 uri = urlparse.urljoin(base, "304/test_etag.txt")
396 uri = urlparse.urljoin(base, "304/test_etag.txt")
409 uri = urlparse.urljoin(base, "304/test_etag.txt")
418 uri = urlparse.urljoin(base, "user-agent/test.cgi")
426 uri = urlparse.urljoin(base, "user-agent/test.cgi")
[all …]
/external/python/cpython2/Doc/library/
Durlparse.rst1 :mod:`urlparse` --- Parse URLs into components
4 .. module:: urlparse
16 The :mod:`urlparse` module is renamed to :mod:`urllib.parse` in Python 3.
20 **Source code:** :source:`Lib/urlparse.py`
39 The :mod:`urlparse` module defines the following functions:
42 .. function:: urlparse(urlstring[, scheme[, allow_fragments]])
52 >>> from urlparse import urlparse
53 >>> o = urlparse('http://www.cwi.nl:80/%7Eguido/Python.html')
65 Following the syntax specifications in :rfc:`1808`, urlparse recognizes
70 >>> from urlparse import urlparse
[all …]
/external/python/cpython2/Lib/
Drobotparser.py13 import urlparse
53 self.host, self.path = urlparse.urlparse(url)[1:3]
146 parsed_url = urlparse.urlparse(urllib.unquote(url))
147 url = urlparse.urlunparse(('', '', parsed_url.path,
176 path = urlparse.urlunparse(urlparse.urlparse(path))
/external/python/cpython3/Lib/test/
Dtest_urlparse.py86 result = urllib.parse.urlparse(url)
98 result3 = urllib.parse.urlparse(result.geturl())
240 self.assertEqual(urllib.parse.urlunparse(urllib.parse.urlparse(u)), u)
292 self.assertEqual(urllib.parse.urlparse('mailto:1337@example.org'),
489 urlparsed = urllib.parse.urlparse(url)
500 self.assertRaises(ValueError, urllib.parse.urlparse, invalid_url)
630 for parse in (urllib.parse.urlsplit, urllib.parse.urlparse):
658 p = urllib.parse.urlparse(uri)
676 p = urllib.parse.urlparse(uri)
686 self.assertEqual(urllib.parse.urlparse("http://example.com?blahblah=/foo"),
[all …]
/external/autotest/client/cros/cellular/
Dtest_endpoint.py8 import urlparse
27 url = urlparse.urlparse(self.path)
32 parsed_query = urlparse.parse_qs(url.query)
Dnet_interface.py6 import urlparse
72 urlparse.urlparse(network.FETCH_URL_PATTERN_FOR_TEST).netloc
/external/autotest/site_utils/stats/
Dapache_access_log_metrics.py14 import urlparse
155 query = urlparse.urlparse(url).query
156 return urlparse.parse_qs(query)[RPC_METHOD_ARGUMENT][-1]
/external/autotest/client/cros/
Dhttpd.py13 import threading, urllib, urlparse
70 path = urlparse.urlparse(self.path)[2]
113 path = urlparse.urlparse(path)[2]
146 split_url = urlparse.urlsplit(self.path)
151 args = urlparse.parse_qs(split_url[3])
/external/autotest/server/
Dafe_urls.py18 import urlparse
37 self._root_url_parts = urlparse.urlsplit(root_url)
75 return urlparse.SplitResult(
Dafe_urls_unittest.py6 import urlparse
24 urlsplit = urlparse.urlsplit
/external/autotest/client/site_tests/autoupdate_DisconnectReconnectNetwork/
Dautoupdate_DisconnectReconnectNetwork.py7 import urlparse
41 self._update_server = urlparse.urlparse(update_url).hostname
/external/python/httplib2/python2/httplib2/
Diri2uri.py9 import urlparse
64 (scheme, authority, path, query, fragment) = urlparse.urlsplit(uri)
69 uri = urlparse.urlunsplit((scheme, authority, path, query, fragment))
/external/autotest/server/site_tests/autoupdate_Interruptions/
Dautoupdate_Interruptions.py7 import urlparse
44 parsed_url = urlparse.urlparse(update_url)
/external/autotest/client/site_tests/cellular_Smoke/
Dcellular_Smoke.py8 import urlparse
75 urlparse.urlparse(url_pattern).hostname,
/external/autotest/server/cros/
Dautoupdater.py11 import urlparse
224 urlparse.urlparse(update_url).path).split('/')[-1].strip()
238 return '/'.join(urlparse.urlparse(update_url).path.split('/')[-2:])
648 server_name = urlparse.urlparse(self.update_url)[1]
914 server_name = urlparse.urlparse(self.update_url)[1]
/external/clang/tools/clang-format/
Dclang-format-bbedit.applescript8 …eturn do shell script "python -c \"import urllib, urlparse, sys; print urllib.unquote(urlparse.url…
/external/python/cpython2/Tools/webchecker/
Dwebchecker.py117 import urlparse
317 urlparse.urlparse(root)
321 troot = urlparse.urlunparse((scheme, netloc, path,
329 root = urlparse.urljoin(root, "/")
331 url = urlparse.urljoin(root, "/robots.txt")
482 root = urlparse.urljoin(root, "/")
709 base = urlparse.urljoin(self.url, self.parser.getbase() or "")
712 t = urlparse.urlparse(rawlink)
717 rawlink = urlparse.urlunparse(t)
718 link = urlparse.urljoin(base, rawlink)
/external/mesa3d/docs/_exts/
Dredirects.py3 from urllib.parse import urlparse
17 if urlparse(dst).scheme == "":
/external/python/oauth2client/oauth2client/contrib/
D_metadata.py25 from six.moves.urllib import parse as urlparse unknown
56 url = urlparse.urljoin(root, path)
/external/python/setuptools/setuptools/_vendor/packaging/
Drequirements.py12 from setuptools.extern.six.moves.urllib import parse as urlparse namespace
98 parsed_url = urlparse.urlparse(req.url)
/external/skqp/infra/bots/
Drecipes.py25 import urlparse
146 engine_path = urlparse.urlparse(url).path
/external/python/httplib2/tests/
Dtest_proxy.py121 uri_parsed = urllib.parse.urlparse(uri)
136 uri_parsed = urllib.parse.urlparse(uri)
162 uri_parsed = urllib.parse.urlparse(uri)
/external/python/setuptools/pkg_resources/_vendor/packaging/
Drequirements.py12 from pkg_resources.extern.six.moves.urllib import parse as urlparse namespace
98 parsed_url = urlparse.urlparse(req.url)
/external/python/cpython3/Doc/library/
Durllib.parse.rst40 .. function:: urlparse(urlstring, scheme='', allow_fragments=True)
51 >>> from urllib.parse import urlparse
52 >>> o = urlparse('http://www.cwi.nl:80/%7Eguido/Python.html')
63 Following the syntax specifications in :rfc:`1808`, urlparse recognizes
71 >>> from urllib.parse import urlparse
72 >>> urlparse('//www.cwi.nl:80/%7Eguido/Python.html')
75 >>> urlparse('www.cwi.nl/%7Eguido/Python.html')
78 >>> urlparse('help/Python.html')
123 :ref:`urlparse-result-object` for more information on the result object.
141 >>> from urllib.parse import urlparse
[all …]

123456