Skip to content

Use a frozenset in sanitizer.py #202

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

Closed
wants to merge 1 commit into from
Closed

Conversation

mgilson
Copy link

@mgilson mgilson commented Aug 9, 2015

Since all of those lists were only used for membership checking, this could provide a small speedup.

It also decreases the number of tests due to elements being repeated in some of the fields.

@gsnedders
Copy link
Member

#110 also fixes this. Though given that needs someone (read: me) to sit down and sort out the testsuite I guess we may as well merge this anyway. (Conflicts? Pff!)

@mgilson
Copy link
Author

mgilson commented Aug 10, 2015

Conflict resolution is why we use git, right? :-).

@gsnedders
Copy link
Member

Bah, git doesn't cope that well when stuff is largely rewritten and moved to a different path. :)

@gsnedders gsnedders closed this May 20, 2016
@landscape-bot
Copy link

Code Health
Repository health decreased by 0.30% when pulling c7097b1 on mgilson:frozenset into 43522a2 on html5lib:master.

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.

3 participants