Skip to content

Commit 3cc9d67

Browse files
demonolockv.shepard
andauthored
Replace deprecated distutils find_executable on shutil which (#82)
Co-authored-by: v.shepard <v.shepard@postgrespro.ru>
1 parent 8979f83 commit 3cc9d67

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy