Skip to content

Commit f7d076b

Browse files
SG-38306 Python2 Removal - Part 9 - six module (#395)
1 parent 592377c commit f7d076b

File tree

12 files changed

+4
-1137
lines changed

12 files changed

+4
-1137
lines changed

.coveragerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@
1616
source=shotgun_api3
1717
omit=
1818
shotgun_api3/lib/httplib2/*
19-
shotgun_api3/lib/six.py
2019
shotgun_api3/lib/certify/*
2120
shotgun_api3/lib/pyparsing.py

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111
[flake8]
1212
max-line-length = 120
13-
exclude = shotgun_api3/lib/httplib2/*,shotgun_api3/lib/six.py,tests/httplib2test.py
13+
exclude = shotgun_api3/lib/httplib2/*,tests/httplib2test.py

docs/cookbook/examples/ami_handler.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ via ``POST``. If you're using a custom protocol the data is sent via ``GET``.
9595
# Imports
9696
# ---------------------------------------------------------------------------------------------
9797
import sys, os
98-
import six
9998
import logging as logger
10099

101100
# ---------------------------------------------------------------------------------------------

shotgun_api3/lib/README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,8 @@ 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-
### six
14-
15-
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/).
16-
17-
The version of `six` 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.
18-
1913
## Flow Production Tracking Modules
2014

21-
### sgsix
22-
23-
`sgsix` is a module that contains extensions to `six`. These might be additional helper functions, variables, etc. that supplement six's functionality. It is intended that `sgsix` can be used within other packages that include or depend on the `python-api` package as well.
24-
2515
### sgtimezone
2616

2717
`sgtimezone` contains classes for easing the conversion between the server (UTC) timezone and client timezone.

shotgun_api3/lib/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@
2929
# This file is unused. It is left there so Github can warn us is a CVE is
3030
# released for our dependencies.
3131
httplib2==0.22.0
32-
six==1.13.0
33-
certifi==2025.7.14
32+
certifi==2024.7.4
3433
pyparsing==2.4.7

shotgun_api3/lib/sgsix.py

Lines changed: 0 additions & 87 deletions
This file was deleted.

shotgun_api3/lib/sgutils.py

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)