From 3e4cb7f40f28f1c49e0e4c3e841549c53065af3c Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Thu, 5 Aug 2021 14:04:01 +0900 Subject: platform: Import subprocess in function. (GH-27610) --- Lib/platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/platform.py b/Lib/platform.py index 39c8ad5..0f17964 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -116,7 +116,6 @@ import collections import os import re import sys -import subprocess import functools import itertools @@ -748,6 +747,7 @@ class _Processor: """ Fall back to `uname -p` """ + import subprocess try: return subprocess.check_output( ['uname', '-p'], -- cgit v0.12