platform: Import subprocess in function. (GH-27610)

This commit is contained in:
Inada Naoki 2021-08-05 14:04:01 +09:00 committed by GitHub
parent 80f33f266b
commit 3e4cb7f40f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,6 @@ import collections
import os import os
import re import re
import sys import sys
import subprocess
import functools import functools
import itertools import itertools
@ -748,6 +747,7 @@ class _Processor:
""" """
Fall back to `uname -p` Fall back to `uname -p`
""" """
import subprocess
try: try:
return subprocess.check_output( return subprocess.check_output(
['uname', '-p'], ['uname', '-p'],