Skip to content

Conversation

@kulikjak
Copy link
Member

Six library was useful for migration purposes between Python 2 and 3, but since Python 3.6 is the oldest supported at this point, it is no longer necessary (and makes things unnecessary more complex and slower).

This PR removes all uses of the six library (it doesn't remove six vendored by urllib3; that should be IMHO done with urllib3 update).

It's quite a big change, but most of it is scripted with simple sed replacements/deletions (mentioned in each commit). Skipping those three large commits, the remaining changes are fairly small.

done automatically with the following: find src/oci -type f -print | xargs gsed -i 's|six\.iterkeys(kwargs)|kwargs.keys()|g' find src/oci -type f -print | xargs gsed -i 's|six\.iteritems(header_params)|header_params.items()|g' find src/oci -type f -print | xargs gsed -i 's|six\.iteritems(path_params)|path_params.items()|g' find src/oci -type f -print | xargs gsed -i 's|six\.iteritems(query_params)|query_params.items()|g'
done automatically with the following: find src/oci -type f -print | xargs gsed -i 's|six\.string_types|str|g' find src/oci -type f -print | xargs gsed -i 's|six\.binary_type|bytes|g'
done automatically with the following: find src/oci -type f -print | xargs gsed -i '/^from oci._vendor import six$/d'
@oracle-contributor-agreementoracle-contributor-agreementbot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 3, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA VerifiedAll contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@kulikjak