Skip to content

Commit 3e4cb7f

Browse files
authored
platform: Import subprocess in function. (GH-27610)
1 parent 80f33f2 commit 3e4cb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/platform.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
import os
117117
import re
118118
import sys
119-
import subprocess
120119
import functools
121120
import itertools
122121

@@ -748,6 +747,7 @@ def from_subprocess():
748747
"""
749748
Fall back to `uname -p`
750749
"""
750+
import subprocess
751751
try:
752752
return subprocess.check_output(
753753
['uname', '-p'],

0 commit comments

Comments
 (0)