Skip to content

Commit

Permalink
Replace deprecated distutils find_executable on shutil which (#82)
Browse files Browse the repository at this point in the history
Co-authored-by: v.shepard <[email protected]>
  • Loading branch information
demonolock and v.shepard authored May 29, 2023
1 parent 8979f83 commit 3cc9d67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testgres/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

from contextlib import contextmanager
from packaging.version import Version
from distutils.spawn import find_executable
try:
from shutil import which as find_executable
except ImportError:
from distutils.spawn import find_executable
from six import iteritems

from .config import testgres_config
Expand Down

0 comments on commit 3cc9d67

Please sign in to comment.