mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
platform: Import subprocess in function. (GH-27610)
This commit is contained in:
parent
80f33f266b
commit
3e4cb7f40f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue