mirror of
https://github.com/qca/qca-swiss-army-knife.git
synced 2025-12-10 07:44:42 +01:00
ath12k-check: using shutil.which()
Distutils module is deprecated so use shutil.which() instead. Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
This commit is contained in:
parent
9a16a4abec
commit
2bd53768fa
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ import queue
|
|||
import threading
|
||||
import string
|
||||
import hashlib
|
||||
import distutils.spawn
|
||||
import shutil
|
||||
|
||||
CHECKPATCH_COMMIT = '362173572a4018e9c8e39c616823189c41d39d41'
|
||||
CHECKPATCH_MD5SUM = '47ef327d772c156e53a36597723fc781'
|
||||
|
|
@ -224,7 +224,7 @@ def is_filtered(cpwarning):
|
|||
|
||||
|
||||
def get_checkpatch_md5sum():
|
||||
path = distutils.spawn.find_executable('checkpatch.pl', os.environ['PATH'])
|
||||
path = shutil.which('checkpatch.pl')
|
||||
f = open(path, 'rb')
|
||||
md5sum = hashlib.md5(f.read()).hexdigest()
|
||||
f.close()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue