Skip to content

Commit 8c5ef90

Browse files
SG-38306 Python2 Removal - Part 4 - Mimetypes module (#401)
* Remove deprecated custom mimetype module --------- Co-authored-by: Eduardo Chauca <[email protected]>
1 parent 517f65f commit 8c5ef90

File tree

4 files changed

+1
-658
lines changed

4 files changed

+1
-658
lines changed

shotgun_api3/lib/README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@ Some third-party modules are bundled with `python-api` inside lib.
1010

1111
The version of `httplib2` bundled should be updated manually, however its version is included in the unused `shotgun_api3/lib/requirements.txt` to allow Github's automated CVE notifications to work.
1212

13-
### mimetypes
14-
15-
The `mimetypes` module is broken on Windows only for Python 2.7.0 to 2.7.9 inclusively.
16-
We bundle the version from 2.7.10
17-
18-
See bugs:
19-
20-
* [9291](http://bugs.python.org/issue9291) (Fixed in 2.7.7)
21-
* [21652](http://bugs.python.org/issue21652) (Fixed in 2.7.8)
22-
* [22028](http://bugs.python.org/issue22028) (Fixed in 2.7.10)
23-
24-
The version of `mimetypes` bundled should be updated manually if necessary, however it is unlikely this will be needed, as it is only used for Python versions 2.7.0 - 2.7.9, and newer Python versions simply use the native `mimetypes` module.
25-
2613
### six
2714

2815
Six is a Python 2/3 compatibility library. In python-api, it's used to make simultaneous support for Python on 2 and 3 easier to maintain and more readable, but allowing the use of common helper functions, unified interfaces for modules that changed, and variables to ease type comparisons. For more on six, see the [documentation](https://six.readthedocs.io/).

0 commit comments

Comments
 (0)