Skip to content

Commit

Permalink
platform: Import subprocess in function. (GH-27610)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Aug 5, 2021
1 parent 80f33f2 commit 3e4cb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/platform.py
Expand Up @@ -116,7 +116,6 @@
import os
import re
import sys
import subprocess
import functools
import itertools

Expand Down Expand Up @@ -748,6 +747,7 @@ def from_subprocess():
"""
Fall back to `uname -p`
"""
import subprocess
try:
return subprocess.check_output(
['uname', '-p'],
Expand Down

0 comments on commit 3e4cb7f

Please sign in to comment.