Skip to content

[flake8-bandit] Allow urllib.request.urlopen calls with static Request argument#10964

Merged
charliermarsh merged 1 commit intomainfrom
charlie/s
Apr 16, 2024
Merged

[flake8-bandit] Allow urllib.request.urlopen calls with static Request argument#10964
charliermarsh merged 1 commit intomainfrom
charlie/s

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

Allows, e.g.:

import urllib

urllib.request.urlopen(urllib.request.Request("https://example.com/"))

...in suspicious-url-open-usage.

See: #7918 (comment)

@charliermarsh charliermarsh added the rule Implementing or modifying a lint rule label Apr 16, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 16, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants