1
|
1
|
#
|
|
2
|
+# Copyright (c) 2014 by Armin Ronacher.
|
2
|
3
|
# Copyright (C) 2016 Codethink Limited
|
3
|
4
|
#
|
4
|
5
|
# This program is free software; you can redistribute it and/or
|
... |
... |
@@ -14,8 +15,22 @@ |
14
|
15
|
# You should have received a copy of the GNU Lesser General Public
|
15
|
16
|
# License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
16
|
17
|
#
|
17
|
|
-# This module was forked from the python click library.
|
18
|
|
-
|
|
18
|
+# This module was forked from the python click library, Included
|
|
19
|
+# original copyright notice from the Click library and following disclaimer
|
|
20
|
+# as per their LICENSE requirements.
|
|
21
|
+#
|
|
22
|
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
23
|
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
24
|
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
25
|
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
26
|
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
27
|
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
28
|
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
29
|
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
30
|
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
31
|
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
32
|
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+#
|
19
|
34
|
import collections
|
20
|
35
|
import copy
|
21
|
36
|
import os
|