- Notifications
You must be signed in to change notification settings - Fork 204
SG-38306 Python2 Removal - Part 9 - six module#395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
eduardoChaucaGallegos commented Jul 8, 2025 • edited by julien-lang
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by julien-lang
Uh oh!
There was an error while loading. Please reload this page.
carlos-villavicencio-adsk left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small proposal.
Uh oh!
There was an error while loading. Please reload this page.
72a8750 to 733f058Comparec0ffd6e to ae164dcCompare24ce878 to 4961679Compare2f109c4 to f6275cdCompare4961679 to 9a131faCompareshotgun_api3/lib/sgutils.py Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's only possible if shotgunsoftware/tk-core#1042 is merged and released first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes Python 2 compatibility code as part of the larger Python 2 removal effort, specifically targeting the six module and related utility functions. The changes clean up legacy compatibility layers that are no longer needed since the project has moved to Python 3 only.
Key changes:
- Removed the bundled
sixmodule and related imports from test and production code - Deleted the custom
sgutils.pyandsgsix.pycompatibility modules - Replaced
six.PY38version checks with directsys.version_infocomparisons - Updated configuration files to exclude removed modules from linting and coverage
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| shotgun_api3/shotgun.py | Replaced six.PY38 checks with sys.version_info comparisons and removed six/sgutils imports |
| shotgun_api3/lib/six.py | Complete removal of the bundled six compatibility library |
| shotgun_api3/lib/sgutils.py | Removed custom utility functions for Python 2/3 compatibility |
| shotgun_api3/lib/sgsix.py | Removed Shotgun-specific six extensions module |
| tests/*.py | Cleaned up six imports from test files |
| Configuration files | Updated flake8 and coverage exclusions to remove references to deleted modules |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
f7d076b into masterUh oh!
There was an error while loading. Please reload this page.
Description
PR orders