Skip to content

Conversation

@mikemanger
Copy link
Contributor

I've ran pyupgrade --py36-plus on the project. This has tidied up a few things:

  • removed the old Python 2 headers
  • Removed six requirement
  • Use modern string concatenation
  • Use python 3 super methods
  • Update unit test methods
  • I've also removed the recently added fallback for SSLContext.wrap_socket() as it is available in Python 3.6.

This fixes #80

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 - Thank you so much for this contribution @mikemanger - your work here much appreciated! The code is a lot neater thanks to the upgrade.

I checked out the changes here, ran it locally, ran unit tests. I also verified that the package six is no longer required. All working nicely.

I will merge this and then package it up in a new version, 8.0.2

@russella-acm russella-acm merged commit 484da43 into campaignmonitor:master Dec 6, 2024
1 check passed
@mikemanger mikemanger deleted the remove-old-python-code branch December 9, 2024 21:48
AlexisT-CM pushed a commit that referenced this pull request Jan 23, 2025
AlexisT-CM pushed a commit that referenced this pull request Jan 23, 2025
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.

Drop support for old Python

2 participants