Skip to content

Commit f79a604

Browse files
authored
Create a short license for PSF and MIT. (ansible#32212)
Modify selectors, six, and urls.py (match_hostname) to use the short license
1 parent 749197b commit f79a604

File tree

4 files changed

+68
-88
lines changed

4 files changed

+68
-88
lines changed

lib/ansible/compat/selectors/_selectors2.py

+2-20
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,11 @@
44
# PSF License and MIT License:
55
# https://github.com/SethMichaelLarson/selectors2#license
66
#
7-
# Seth's copy of the MIT license is reproduced below
8-
#
9-
# MIT License
10-
#
117
# Copyright (c) 2016 Seth Michael Larson
128
#
13-
# Permission is hereby granted, free of charge, to any person obtaining a copy
14-
# of this software and associated documentation files (the "Software"), to deal
15-
# in the Software without restriction, including without limitation the rights
16-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17-
# copies of the Software, and to permit persons to whom the Software is
18-
# furnished to do so, subject to the following conditions:
19-
#
20-
# The above copyright notice and this permission notice shall be included in all
21-
# copies or substantial portions of the Software.
9+
# PSF License (see licenses/PSF-license.txt or https://opensource.org/licenses/Python-2.0)
10+
# MIT License (see licenses/MIT-license.txt or https://opensource.org/licenses/MIT)
2211
#
23-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29-
# SOFTWARE.
3012

3113

3214
# Backport of selectors.py from Python 3.5+ to support Python < 3.4

lib/ansible/module_utils/urls.py

+4-68
Original file line numberDiff line numberDiff line change
@@ -6,80 +6,16 @@
66
#
77
# Copyright (c), Michael DeHaan <[email protected]>, 2012-2013
88
# Copyright (c), Toshio Kuratomi <[email protected]>, 2015
9-
# All rights reserved.
109
#
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)
2911
#
3012
# The match_hostname function and supporting code is under the terms and
3113
# conditions of the Python Software Foundation License. They were taken from
3214
# 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.
5816
#
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+
8319

8420
'''
8521
The **urls** utils module offers a replacement for the urllib2 python library.

licenses/MIT-license.txt

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
2+
associated documentation files (the "Software"), to deal in the Software without restriction,
3+
including without limitation the rights to use, copy, modify, merge, publish, distribute,
4+
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
5+
furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial
8+
portions of the Software.
9+
10+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
11+
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
12+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
13+
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
14+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

licenses/PSF-license.txt

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
2+
--------------------------------------------
3+
4+
1. This LICENSE AGREEMENT is between the Python Software Foundation
5+
("PSF"), and the Individual or Organization ("Licensee") accessing and
6+
otherwise using this software ("Python") in source or binary form and
7+
its associated documentation.
8+
9+
2. Subject to the terms and conditions of this License Agreement, PSF hereby
10+
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
11+
analyze, test, perform and/or display publicly, prepare derivative works,
12+
distribute, and otherwise use Python alone or in any derivative version,
13+
provided, however, that PSF's License Agreement and PSF's notice of copyright,
14+
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
15+
2011, 2012, 2013, 2014, 2015, 2016, 2017 Python Software Foundation; All Rights
16+
Reserved" are retained in Python alone or in any derivative version prepared by
17+
Licensee.
18+
19+
3. In the event Licensee prepares a derivative work that is based on
20+
or incorporates Python or any part thereof, and wants to make
21+
the derivative work available to others as provided herein, then
22+
Licensee hereby agrees to include in any such work a brief summary of
23+
the changes made to Python.
24+
25+
4. PSF is making Python available to Licensee on an "AS IS"
26+
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
27+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
28+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
29+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
30+
INFRINGE ANY THIRD PARTY RIGHTS.
31+
32+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
33+
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
34+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
35+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
36+
37+
6. This License Agreement will automatically terminate upon a material
38+
breach of its terms and conditions.
39+
40+
7. Nothing in this License Agreement shall be deemed to create any
41+
relationship of agency, partnership, or joint venture between PSF and
42+
Licensee. This License Agreement does not grant permission to use PSF
43+
trademarks or trade name in a trademark sense to endorse or promote
44+
products or services of Licensee, or any third party.
45+
46+
8. By copying, installing or otherwise using Python, Licensee
47+
agrees to be bound by the terms and conditions of this License
48+
Agreement.

0 commit comments

Comments
 (0)