Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use python sets#158

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
blag wants to merge1 commit intohtml5lib:masterfromblag:use_python_sets
Closed

Conversation

blag
Copy link

Instead of

for (loop):    if (condition):        continue

simply use Python sets:

for attr in set(attrs.keys()).intersection(set(self.attr_val_is_uri)):    ...

@hoppipolla-critic-bot

Critic review:https://critic.hoppipolla.co.uk/r/1615

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please donot make in-place history rewrites (e.g. viagit rebase -i orgit commit --amend) when updating this pull request.

@gsnedders
Copy link
Member

Can you have each branch based on upstream master, so you don't have massive overlap between PRs? Note that#110 makes large changes to the sanitizer — including changing the lists to sets.

@blag
Copy link
Author

Sorry I'm still new to using Github's pull requests. This is fixed.

And yes, this is superseded by#110.

@gsnedders
Copy link
Member

Per above, superseded.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@blag@hoppipolla-critic-bot@gsnedders

[8]ページ先頭

©2009-2025 Movatter.jp