Skip to content

Fix #1662: Avoid assigning arbitrary attributes to SafeString instances #1663

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

Merged
merged 3 commits into from
Aug 17, 2022

Conversation

matthiask
Copy link
Member

Refs #1662.

@tim-schilling
Copy link
Member

Doesn't this need to be added to setup.cfg?

@matthiask
Copy link
Member Author

Doesn't this need to be added to setup.cfg?

It's not a mandatory dependency right now and I'm not convinced it should be. Syntax highlighting is great of course but I don't think the template panel really needs it.

@matthiask matthiask changed the title Add pygments to the dependencies; the template_source view uses it Add pygments to the dependencies; the template_source view uses it if it's available Aug 17, 2022
@matthiask matthiask changed the title Add pygments to the dependencies; the template_source view uses it if it's available Fix #1662: Avoid assigning arbitrary attributes to SafeString instances Aug 17, 2022
Copy link
Member

@tim-schilling tim-schilling left a comment

Choose a reason for hiding this comment

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

Ah, the classic "even better" solution.

@matthiask matthiask merged commit f1c03eb into main Aug 17, 2022
@matthiask matthiask deleted the mk/pygments-dependency branch August 17, 2022 17:36
@matthiask
Copy link
Member Author

@tim-schilling Thanks for the review! :-)

I think it's time for another release, or is there anything we should do first?

@tim-schilling
Copy link
Member

You're welcome! I'm good with a release.

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.

2 participants