FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Tidy up SSL connection to fix deprecation warnings by mikemanger · Pull Request #86 · campaignmonitor/createsend-python · GitHub

Tidy up SSL connection to fix deprecation warnings - #86

Merged
russella-acm merged 2 commits into
campaignmonitor:masterfrom
mikemanger:fix-deprecation-warnings
Dec 7, 2024
Merged

Tidy up SSL connection to fix deprecation warnings#86
russella-acm merged 2 commits into
campaignmonitor:masterfrom
mikemanger:fix-deprecation-warnings

Conversation

mikemanger commented Dec 6, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

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.

russella-acm left a comment
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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 merged commit baef322 into campaignmonitor:master Dec 7, 2024
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL