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 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'],
|
||||||
|
|
Loading…
Reference in New Issue