bpo-29919: Remove unused imports found by pyflakes by vstinner · Pull Request #137 · python/cpython (original) (raw)
2017-02-18 0:35 GMT+01:00 Barry Warsaw notifications@github.com:
Gosh I'd love to enable flake8 on the stdlib, since it often causes my eyes to bleed red when I open a py file from the stdlib. But I suppose that will just cause unnecessary code churn. It's still nice to clean things up when you can, like unused imports.
Technically, it's possible, but you should expect a lot of "# noqa" to ignore warnings when pyflakes is not smart enough to understand "Python magic". For example, even with my patch, there are still tons of "unused import" warnings.