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

Commit3cc9d67

Browse files
demonolockv.shepard
and
v.shepard
authored
Replace deprecated distutils find_executable on shutil which (#82)
Co-authored-by: v.shepard <v.shepard@postgrespro.ru>
1 parent8979f83 commit3cc9d67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎testgres/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212

1313
fromcontextlibimportcontextmanager
1414
frompackaging.versionimportVersion
15-
fromdistutils.spawnimportfind_executable
15+
try:
16+
fromshutilimportwhichasfind_executable
17+
exceptImportError:
18+
fromdistutils.spawnimportfind_executable
1619
fromsiximportiteritems
1720

1821
from .configimporttestgres_config

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp