Use python3.6 compatible APIs in clang_tidy.py (#60659)
Summary:
This PR make `tools/clang_tidy.py` use python 3.6 APIs for `asyncio` and `shlex`.
I ran into some issues when running this script with the `-j` flag inside of the clang-tidy docker image (which uses python 3.6). Specifically, the functions `asycnio.run` and `shlex.join` are available in python >= 3.8.
This change does not affect CI because we do not run the clang-tidy job in parallel.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60659
Reviewed By: albanD
Differential Revision: D29377851
Pulled By: 1ntEgr8
fbshipit-source-id: 92ab7ee6782b78d40ffccd03f1718ede4204d948