◐ Shell
clean mode source ↗

bpo-35346, platform: import subprocess in _syscmd_file() by vstinner · Pull Request #10892 · python/cpython

Only platform._syscmd_file() uses subprocess. Move subprocess import
inside this function to reduce the number of imports at Python
startup.

Remove also warnings import which is no longer needed.

https://bugs.python.org/issue35346