Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly urlencode email address parts #659

Merged
merged 5 commits into from May 10, 2022
Merged

Conversation

larseggert
Copy link
Contributor

Fixes #658

@willkg willkg added this to the v5.0.1 milestone May 4, 2022
@willkg
Copy link
Member

willkg commented May 5, 2022

@larseggert Can you fix up the broken tests? Thanks!

If you don't have time for that, I can get to it this month. I think it's mostly fixing "@" -> "%40" kinds of things.

@larseggert
Copy link
Contributor Author

@willkg could you kick the CI tests? For some reason, running the tests locally via tox doesn't work.

@willkg
Copy link
Member

willkg commented May 6, 2022

You should be able to run tests locally. Can you elaborate on what doesn't work when you run tox?

@larseggert
Copy link
Contributor Author

When I run tox locally, the change I make to handle_email_addresses don't seem to be picked up. Ditto when I just run pytest.

@willkg
Copy link
Member

willkg commented May 6, 2022

If you create a virtual environment and install everything with:

pip install -e '.[dev,css]'

that should install Bleach into the virtual environment in an editable mode which will reflect changes you're making in the src/ directory.

Does that help?

@larseggert
Copy link
Contributor Author

If you create a virtual environment

How do I do that?

@willkg
Copy link
Member

willkg commented May 6, 2022

Python comes with a virtual environment system. It's a convenient way to install things in a sandbox that doesn't affect your system-wide Python setup. This is very convenient for development where the things you're working on might be in flux or have bugs.

@willkg willkg self-requested a review May 10, 2022 14:41
Copy link
Member

@willkg willkg left a comment

Choose a reason for hiding this comment

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

Thank you for doing this!

@willkg willkg merged commit 4f951d3 into mozilla:main May 10, 2022
@larseggert larseggert deleted the fix-658 branch May 10, 2022 18:28
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.

bug: linkify with parse_email=True doesn't handle "%" a "?" in addr-specs
2 participants