shotgun-api3 3.8.4__py2.py3-none-any.whl → 3.9.0__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. shotgun_api3/lib/certifi/__init__.py +1 -1
  2. shotgun_api3/lib/certifi/cacert.pem +185 -263
  3. shotgun_api3/lib/certifi/core.py +1 -32
  4. shotgun_api3/lib/httplib2/__init__.py +1799 -39
  5. shotgun_api3/lib/httplib2/auth.py +1 -1
  6. shotgun_api3/lib/mockgun/mockgun.py +0 -1
  7. shotgun_api3/lib/mockgun/schema.py +1 -1
  8. shotgun_api3/shotgun.py +98 -275
  9. {shotgun_api3-3.8.4.dist-info → shotgun_api3-3.9.0.dist-info}/METADATA +6 -47
  10. shotgun_api3-3.9.0.dist-info/RECORD +26 -0
  11. shotgun_api3/lib/httplib2/python2/__init__.py +0 -1993
  12. shotgun_api3/lib/httplib2/python2/auth.py +0 -63
  13. shotgun_api3/lib/httplib2/python2/cacerts.txt +0 -2225
  14. shotgun_api3/lib/httplib2/python2/certs.py +0 -42
  15. shotgun_api3/lib/httplib2/python2/error.py +0 -48
  16. shotgun_api3/lib/httplib2/python2/iri2uri.py +0 -123
  17. shotgun_api3/lib/httplib2/python2/socks.py +0 -518
  18. shotgun_api3/lib/httplib2/python3/__init__.py +0 -1799
  19. shotgun_api3/lib/httplib2/python3/auth.py +0 -69
  20. shotgun_api3/lib/httplib2/python3/cacerts.txt +0 -2225
  21. shotgun_api3/lib/httplib2/python3/certs.py +0 -42
  22. shotgun_api3/lib/httplib2/python3/error.py +0 -48
  23. shotgun_api3/lib/httplib2/python3/iri2uri.py +0 -124
  24. shotgun_api3/lib/httplib2/python3/socks.py +0 -518
  25. shotgun_api3/lib/mimetypes.py +0 -598
  26. shotgun_api3/lib/sgsix.py +0 -87
  27. shotgun_api3/lib/sgutils.py +0 -62
  28. shotgun_api3/lib/six.py +0 -964
  29. shotgun_api3-3.8.4.dist-info/RECORD +0 -44
  30. {shotgun_api3-3.8.4.dist-info → shotgun_api3-3.9.0.dist-info}/WHEEL +0 -0
  31. {shotgun_api3-3.8.4.dist-info → shotgun_api3-3.9.0.dist-info}/licenses/LICENSE +0 -0
  32. {shotgun_api3-3.8.4.dist-info → shotgun_api3-3.9.0.dist-info}/top_level.txt +0 -0
@@ -1,62 +0,0 @@
1
- """
2
- -----------------------------------------------------------------------------
3
- Copyright (c) 2009-2024, Shotgun Software Inc.
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
7
-
8
- - Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
10
-
11
- - Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- - Neither the name of the Shotgun Software Inc nor the names of its
16
- contributors may be used to endorse or promote products derived from this
17
- software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- """
30
-
31
-
32
- def ensure_binary(s, encoding='utf-8', errors='strict'):
33
- """
34
- Coerce **s** to bytes.
35
-
36
- - `str` -> encoded to `bytes`
37
- - `bytes` -> `bytes`
38
- """
39
- if isinstance(s, str):
40
- return s.encode(encoding, errors)
41
- elif isinstance(s, bytes):
42
- return s
43
- else:
44
- raise TypeError(f"not expecting type '{type(s)}'")
45
-
46
-
47
- def ensure_str(s, encoding='utf-8', errors='strict'):
48
- """Coerce *s* to `str`.
49
-
50
- - `str` -> `str`
51
- - `bytes` -> decoded to `str`
52
- """
53
- if isinstance(s, str):
54
- return s
55
-
56
- elif isinstance(s, bytes):
57
- return s.decode(encoding, errors)
58
-
59
- raise TypeError(f"not expecting type '{type(s)}'")
60
-
61
-
62
- ensure_text = ensure_str