Visitar URL original
platform: Import subprocess in function. by methane · Pull Request #27610 · python/cpython · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
platform: Import subprocess in function.
  • Loading branch information
methane committed Aug 5, 2021
commit f64b5707e313e456c4d0f9eb86aee080ffa8c2a1
2 changes: 1 addition & 1 deletion Lib/platform.py
Original file line number Diff line number Diff line change
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