Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mikemanger
Copy link
Contributor

@mikemanger mikemanger commented Dec 6, 2024

Removes some python 2 checks and fixes deprecation warnings on python 3.10 and above. Fixes #85

I feel the VerifiedHTTPSConnection class should probably be dropped in favour of using urllib3.connection.HTTPSConnection as a dependency - the code in this repository appears to be based on a much earlier version of this class. I don't think it is quite a drop in replacement as we'd need to set the CA file included in this repository.

Copy link
Contributor

@russella-acm russella-acm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - brilliant as always @mikemanger - thank you for fixing this. We really appreciate all the work you've done to make this wrapper better.

To test this change we:
✔️ Ran the unit tests, they all pass
✔️ Ran a sample program using the code in this PR, that passed
✔️ Ran tox, below is a picture of the before and after showing that the deprecation warning has been eliminated.

Before/After - Left/Right
image

We will release this in a new version (9.0.1)

We will take a look at review the issues which we have not paid proper attention to, and see if we can address them. Of course, we welcome any feedback or help along the way to keep improving this API wrapper. A big thank you for all your contributions 🥇

@russella-acm russella-acm merged commit baef322 into campaignmonitor:master Dec 7, 2024
1 check passed
@mikemanger mikemanger deleted the fix-deprecation-warnings branch December 9, 2024 21:45
AlexisT-CM pushed a commit that referenced this pull request Jan 23, 2025
Tidy up SSL connection to fix deprecation warnings
AlexisT-CM pushed a commit that referenced this pull request Jan 23, 2025
Tidy up SSL connection to fix deprecation warnings
Sign up for free to 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.

Deprecation warnings in Python 3.10

2 participants