Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 303e5d5 commit dfdebdaCopy full SHA for dfdebda
1 file changed
Modules/_decimal/tests/formathelper.py
@@ -32,7 +32,7 @@
32
import os, sys, locale, random
33
import platform, subprocess
34
from test.support.import_helper import import_fresh_module
35
-from distutils.spawn import find_executable
+from shutil import which
36
37
C = import_fresh_module('decimal', fresh=['_decimal'])
38
P = import_fresh_module('decimal', blocked=['_decimal'])
@@ -139,7 +139,7 @@
139
with open("/var/lib/locales/supported.d/local") as f:
140
locale_list = [loc.split()[0] for loc in f.readlines() \
141
if not loc.startswith('#')]
142
- elif find_executable('locale'):
+ elif which('locale'):
143
locale_list = subprocess.Popen(["locale", "-a"],
144
stdout=subprocess.PIPE).communicate()[0]
145
try:
0 commit comments