[issue35202] Remove unused imports in standard library

Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) report at bugs.python.org
Sat Nov 10 03:20:08 EST 2018


Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas at gmail.com> added the comment:

I have raised one more PR; I think i am done with this issue. People who are interested can take up from here. ,

For the record, following are some filters to search;

Query to find unused imports
----------------------------------

find . -type f -name \*.py -print  | xargs flake8 | grep F401
----------------------------------

Search query 
------------------------------------
grep -v warnings | grep -v "\.\*" | grep -v tkinter | grep -v sysconfig | grep -v readline | grep -v py3_test_grammar.py  | grep -v java | grep -v rlcompleter | grep -v sitecustomize | grep -v __all__ | grep -v test_importlib | grep -v async | grep -v test_future | grep -v circular_import | grep -v dataclasses
------------------------------------

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35202>
_______________________________________


More information about the Python-bugs-list mailing list