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

Commits on Apr 2, 2023

  1. Improper detection of non-requests module

    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 committed Apr 2, 2023
    Configuration menu
    Copy the full SHA
    cf7fa70 View commit details
    Browse the repository at this point in the history