Skip to content

Commit 3cc9d67

Browse files
demonolockv.shepard
and
v.shepard
authored
Replace deprecated distutils find_executable on shutil which (#82)
Co-authored-by: v.shepard <[email protected]>
1 parent 8979f83 commit 3cc9d67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: testgres/utils.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212

1313
from contextlib import contextmanager
1414
from packaging.version import Version
15-
from distutils.spawn import find_executable
15+
try:
16+
from shutil import which as find_executable
17+
except ImportError:
18+
from distutils.spawn import find_executable
1619
from six import iteritems
1720

1821
from .config import testgres_config

0 commit comments

Comments
 (0)