]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35346, platform: import subprocess in _syscmd_file() (GH-10892)
authorVictor Stinner <vstinner@redhat.com>
Tue, 4 Dec 2018 16:18:12 +0000 (17:18 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Dec 2018 16:18:12 +0000 (17:18 +0100)
commitb8e689a6e8134e88f857a55e50b6a4977967e385
tree25fa93df9fd3f3e930b7c16a76885ad4e9ab44e3
parent4752e65250bce60b97d5af702d586092d02fbf58
bpo-35346, platform: import subprocess in _syscmd_file() (GH-10892)

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.
Lib/platform.py