mirror of https://github.com/python/cpython
platform: Import subprocess in function. (GH-27610)
This commit is contained in:
parent
80f33f266b
commit
3e4cb7f40f
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue