Skip to content

Conversation

@julien-langjulien-langforce-pushed the ticket/SG-38306-python2-removal-mock branch from f533371 to e93ed1eCompareJuly 17, 2025 14:50
@julien-langjulien-langforce-pushed the ticket/SG-38306-python2-removal-httplib2 branch from 346dc35 to 6124681CompareJuly 17, 2025 16:27
@julien-langjulien-lang requested a review from CopilotJuly 17, 2025 17:03
@julien-langjulien-lang marked this pull request as ready for review July 17, 2025 17:03
Copy link
Contributor

CopilotAI left a 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 completes the removal of Python 2 support from the httplib2 module by removing the Python 2 copy of the library and moving the Python 3 version up one directory level. The changes eliminate the version-specific directory structure and consolidate to a single Python 3 implementation.

  • Removes all Python 2 httplib2 library files
  • Moves Python 3 httplib2 files up one directory level
  • Updates import paths and build scripts to reflect the new structure
  • Removes Python 2-specific SSL error handling in favor of standard ssl module

Reviewed Changes

Copilot reviewed 18 out of 20 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
update_httplib2.pyUpdates build script to handle single httplib2 directory instead of separate python2/python3 folders
tests/test_unit.pyReplaces custom ssl_error_classes with standard ssl exceptions and adds ssl import
tests/test_api.pyRemoves Python 2/3 version detection tests and comments
shotgun_api3/shotgun.pyRemoves ssl_error_classes import and uses standard ssl.SSLError, ssl.CertificateError
shotgun_api3/lib/httplib2/auth.pyUpdates relative import path from three levels up to two levels
shotgun_api3/lib/httplib2/python3/*All Python 3 httplib2 files removed (moved up one level)
shotgun_api3/lib/httplib2/python2/*All Python 2 httplib2 files removed

@julien-langjulien-lang requested a review from a teamJuly 17, 2025 17:05
Base automatically changed from ticket/SG-38306-python2-removal-mock to masterSeptember 10, 2025 17:27
@eduardoChaucaGallegoseduardoChaucaGallegos dismissed stale reviews from carlos-villavicencio-adsk and themself September 10, 2025 17:27

The base branch was changed.

@eduardoChaucaGallegoseduardoChaucaGallegos merged commit c3888df into masterSep 10, 2025
21 of 22 checks passed
@eduardoChaucaGallegoseduardoChaucaGallegos deleted the ticket/SG-38306-python2-removal-httplib2 branch September 10, 2025 17:54
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@julien-lang@carlos-villavicencio-adsk@eduardoChaucaGallegos