Skip to content

fix: remove legacy python 2 import#195

Open
Rotzbua wants to merge 1 commit intoweb-push-libs:mainfrom
Rotzbua:fix_remove_legacy
Open

fix: remove legacy python 2 import#195
Rotzbua wants to merge 1 commit intoweb-push-libs:mainfrom
Rotzbua:fix_remove_legacy

Conversation

@Rotzbua
Copy link
Contributor

@Rotzbua Rotzbua commented Feb 8, 2026

Description

from urlparse import urlparse was used before current requirement of python 3.10.

Testing

Run test

Issue(s)

Nope

Copilot AI review requested due to automatic review settings February 8, 2026 14:37
Copy link

Copilot AI 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

Removes legacy Python 2 compatibility import logic for urlparse, aligning the package’s runtime behavior with the declared Python requirement (>= 3.10).

Changes:

  • Replaced the try/except ImportError Python 2 fallback (urlparse) with a direct import from urllib.parse.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

1 participant