mercurial/thirdparty/sha1dc/LICENSE.txt
author Matt Harbison <matt_harbison@yahoo.com>
Sat, 05 Oct 2024 15:00:37 -0400
changeset 51940 54d9f496f07a
parent 44057 7dddc2251365
permissions -rw-r--r--
interfaces: introduce and use a protocol class for the `charencoding` module See f2832de2a46c for details when this was done for the `bdiff` module. This lets us dump the hack where the `pure` implementation was imported during the type checking phase to provide signatures for the module methods it provides. Now the protocol classes are starting to shine, because these methods are provided by `pure.charencoding` and `cext.parsers`, and references to `cffi.charencoding` and `cext.charencoding` are forwarded to them as appropriate by the `policy` module. But none of that matters, as long as the module returned provides the listed methods. The interface was copy/pasted from the `pure` module, but `jsonescapeu8fallback` is omitted because it is accessed from the `pure` module directly when the escaping fails in the primary module's `jsonescapeu8()`.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44057
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
     1
MIT License
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
     2
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
     3
Copyright (c) 2017:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
     4
    Marc Stevens
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
     5
    Cryptology Group
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
     6
    Centrum Wiskunde & Informatica
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
     7
    P.O. Box 94079, 1090 GB Amsterdam, Netherlands
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
     8
    marc@marc-stevens.nl
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
     9
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    10
    Dan Shumow
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    11
    Microsoft Research
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    12
    danshu@microsoft.com
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    13
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    14
Permission is hereby granted, free of charge, to any person obtaining a copy
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    15
of this software and associated documentation files (the "Software"), to deal
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    16
in the Software without restriction, including without limitation the rights
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    17
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    18
copies of the Software, and to permit persons to whom the Software is
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    19
furnished to do so, subject to the following conditions:
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    20
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    21
The above copyright notice and this permission notice shall be included in all
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    22
copies or substantial portions of the Software.
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    23
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    24
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    25
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    26
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    27
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    28
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    29
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
7dddc2251365 sha1dc: import latest version from github
Augie Fackler <augie@google.com>
parents:
diff changeset
    30
SOFTWARE.