Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e4cb7f

Browse files
authored
platform: Import subprocess in function. (GH-27610)
1 parent80f33f2 commit3e4cb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Lib/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
importos
117117
importre
118118
importsys
119-
importsubprocess
120119
importfunctools
121120
importitertools
122121

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp