|
6 | 6 | #
|
7 | 7 | # Copyright (c), Michael DeHaan <[email protected]>, 2012-2013
|
8 | 8 | # Copyright (c), Toshio Kuratomi <[email protected]>, 2015
|
9 |
| -# All rights reserved. |
10 | 9 | #
|
11 |
| -# Redistribution and use in source and binary forms, with or without modification, |
12 |
| -# are permitted provided that the following conditions are met: |
13 |
| -# |
14 |
| -# * Redistributions of source code must retain the above copyright |
15 |
| -# notice, this list of conditions and the following disclaimer. |
16 |
| -# * Redistributions in binary form must reproduce the above copyright notice, |
17 |
| -# this list of conditions and the following disclaimer in the documentation |
18 |
| -# and/or other materials provided with the distribution. |
19 |
| -# |
20 |
| -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
21 |
| -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
22 |
| -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
23 |
| -# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
24 |
| -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
25 |
| -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
26 |
| -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
27 |
| -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE |
28 |
| -# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 10 | +# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) |
29 | 11 | #
|
30 | 12 | # The match_hostname function and supporting code is under the terms and
|
31 | 13 | # conditions of the Python Software Foundation License. They were taken from
|
32 | 14 | # the Python3 standard library and adapted for use in Python2. See comments in the
|
33 |
| -# source for which code precisely is under this License. PSF License text |
34 |
| -# follows: |
35 |
| -# |
36 |
| -# PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 |
37 |
| -# -------------------------------------------- |
38 |
| -# |
39 |
| -# 1. This LICENSE AGREEMENT is between the Python Software Foundation |
40 |
| -# ("PSF"), and the Individual or Organization ("Licensee") accessing and |
41 |
| -# otherwise using this software ("Python") in source or binary form and |
42 |
| -# its associated documentation. |
43 |
| -# |
44 |
| -# 2. Subject to the terms and conditions of this License Agreement, PSF hereby |
45 |
| -# grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, |
46 |
| -# analyze, test, perform and/or display publicly, prepare derivative works, |
47 |
| -# distribute, and otherwise use Python alone or in any derivative version, |
48 |
| -# provided, however, that PSF's License Agreement and PSF's notice of copyright, |
49 |
| -# i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
50 |
| -# 2011, 2012, 2013, 2014 Python Software Foundation; All Rights Reserved" are |
51 |
| -# retained in Python alone or in any derivative version prepared by Licensee. |
52 |
| -# |
53 |
| -# 3. In the event Licensee prepares a derivative work that is based on |
54 |
| -# or incorporates Python or any part thereof, and wants to make |
55 |
| -# the derivative work available to others as provided herein, then |
56 |
| -# Licensee hereby agrees to include in any such work a brief summary of |
57 |
| -# the changes made to Python. |
| 15 | +# source for which code precisely is under this License. |
58 | 16 | #
|
59 |
| -# 4. PSF is making Python available to Licensee on an "AS IS" |
60 |
| -# basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR |
61 |
| -# IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND |
62 |
| -# DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS |
63 |
| -# FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT |
64 |
| -# INFRINGE ANY THIRD PARTY RIGHTS. |
65 |
| -# |
66 |
| -# 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON |
67 |
| -# FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS |
68 |
| -# A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, |
69 |
| -# OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. |
70 |
| -# |
71 |
| -# 6. This License Agreement will automatically terminate upon a material |
72 |
| -# breach of its terms and conditions. |
73 |
| -# |
74 |
| -# 7. Nothing in this License Agreement shall be deemed to create any |
75 |
| -# relationship of agency, partnership, or joint venture between PSF and |
76 |
| -# Licensee. This License Agreement does not grant permission to use PSF |
77 |
| -# trademarks or trade name in a trademark sense to endorse or promote |
78 |
| -# products or services of Licensee, or any third party. |
79 |
| -# |
80 |
| -# 8. By copying, installing or otherwise using Python, Licensee |
81 |
| -# agrees to be bound by the terms and conditions of this License |
82 |
| -# Agreement. |
| 17 | +# PSF License (see licenses/PSF-license.txt or https://opensource.org/licenses/Python-2.0) |
| 18 | + |
83 | 19 |
|
84 | 20 | '''
|
85 | 21 | The **urls** utils module offers a replacement for the urllib2 python library.
|
|
0 commit comments