diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-08-05 05:04:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 05:04:01 (GMT) |
commit | 3e4cb7f40f28f1c49e0e4c3e841549c53065af3c (patch) | |
tree | 66ebec533e2b8c145dfd7a234212ae2019ff747d /Lib | |
parent | 80f33f266b4ad5925a3e58ea3a54ae139a6b6f0e (diff) | |
download | cpython-3e4cb7f40f28f1c49e0e4c3e841549c53065af3c.zip cpython-3e4cb7f40f28f1c49e0e4c3e841549c53065af3c.tar.gz cpython-3e4cb7f40f28f1c49e0e4c3e841549c53065af3c.tar.bz2 |
platform: Import subprocess in function. (GH-27610)
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/platform.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'], |