From: Inada Naoki Date: Thu, 5 Aug 2021 05:04:01 +0000 (+0900) Subject: platform: Import subprocess in function. (GH-27610) X-Git-Tag: v3.11.0a1~467 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e4cb7f40f28f1c49e0e4c3e841549c53065af3c;p=thirdparty%2FPython%2Fcpython.git platform: Import subprocess in function. (GH-27610) --- diff --git a/Lib/platform.py b/Lib/platform.py index 39c8ad587a8b..0f17964da410 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'],