2
# Copyright 2013 Canonical Ltd.
5
# Licensed under the Apache License, Version 2.0 (the "License"); you may
6
# not use this file except in compliance with the License. You may obtain
7
# a copy of the License at
9
# http://www.apache.org/licenses/LICENSE-2.0
11
# Unless required by applicable law or agreed to in writing, software
12
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
# License for the specific language governing permissions and limitations
19
Python2/Python3 compatibility layer for OpenStack
30
urlencode = urllib.parse.urlencode
31
urljoin = urllib.parse.urljoin
32
quote = urllib.parse.quote
33
quote_plus = urllib.parse.quote_plus
34
parse_qsl = urllib.parse.parse_qsl
35
unquote = urllib.parse.unquote
36
unquote_plus = urllib.parse.unquote_plus
37
urlparse = urllib.parse.urlparse
38
urlsplit = urllib.parse.urlsplit
39
urlunsplit = urllib.parse.urlunsplit
40
SplitResult = urllib.parse.SplitResult
42
urlopen = urllib.request.urlopen
43
URLError = urllib.error.URLError
44
pathname2url = urllib.request.pathname2url
51
urlencode = urllib.urlencode
53
quote_plus = urllib.quote_plus
54
unquote = urllib.unquote
55
unquote_plus = urllib.unquote_plus
58
parse_qsl = parse.parse_qsl
59
urljoin = parse.urljoin
60
urlparse = parse.urlparse
61
urlsplit = parse.urlsplit
62
urlunsplit = parse.urlunsplit
63
SplitResult = parse.SplitResult
65
urlopen = urllib2.urlopen
66
URLError = urllib2.URLError
67
pathname2url = urllib.pathname2url