commit | 2c38c0275b790265ab450b79e8dc602e651ca9d3 | [log] [tgz] |
---|---|---|
author | correctmost <134317971+correctmost@users.noreply.github.com> | Fri May 10 15:46:58 2024 -0400 |
committer | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | Sat May 11 10:02:41 2024 +0200 |
tree | d7637a8c4234731b6903a0e1fa487ce5c8a61f35 | |
parent | 0ccc2e29d4b9ce0f54f9e50fa6df85522083c5de [diff] |
Improve performance of _get_zipimporters _get_zipimporters can call isinstance millions of times when running pylint's import-error checker on a codebase like yt-dlp. Checking for None first avoids the overhead of invoking isinstance. Closes pylint-dev/pylint#9607.