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

Improper detection of non-requests module #1011

Merged
merged 1 commit into from Apr 2, 2023
Merged

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Apr 2, 2023

Fixes false postive detecting the usage of the requests module without a timeout. This resolves cases of modules with the word "requests" in the name, but does not match the actual popular third-party module "requests".

The fix checks the fully qualified name and ensures index 0 is "requests". Previously, the code was match any module name with "requests" in it.

Fixes #1010

Fixes false postive detecting the usage of the requests module
without a timeout. This resolves cases of modules with the word
"requests" in the name, but does not match the actual popular
third-party module "requests".

The fix checks the fully qualified name and ensures index 0 is
"requests". Previously, the code was match any module name with
"requests" in it.

Fixes PyCQA#1010

Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
@ericwb ericwb merged commit af6b436 into PyCQA:main Apr 2, 2023
13 checks passed
@ericwb ericwb deleted the not_requests branch April 2, 2023 14:40
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.

[B113:request_without_timeout]: False positive issue
2 participants