summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2021-08-05 05:04:01 (GMT)
committerGitHub <noreply@github.com>2021-08-05 05:04:01 (GMT)
commit3e4cb7f40f28f1c49e0e4c3e841549c53065af3c (patch)
tree66ebec533e2b8c145dfd7a234212ae2019ff747d /Lib/platform.py
parent80f33f266b4ad5925a3e58ea3a54ae139a6b6f0e (diff)
downloadcpython-3e4cb7f40f28f1c49e0e4c3e841549c53065af3c.zip
cpython-3e4cb7f40f28f1c49e0e4c3e841549c53065af3c.tar.gz
cpython-3e4cb7f40f28f1c49e0e4c3e841549c53065af3c.tar.bz2
platform: Import subprocess in function. (GH-27610)
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py2
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'],