Skip to content

Commit

Permalink
Update cysignals-CSI
Browse files Browse the repository at this point in the history
use which (fix deprecation)
  • Loading branch information
fchapoton authored Sep 23, 2024
1 parent 24d859f commit 83b8a08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/cysignals-CSI
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ import site

from argparse import ArgumentParser
from datetime import datetime
from distutils.spawn import find_executable
from shutil import which


def pid_exists(pid):
"""
Return True if and only if there is a process with id pid running.
Return ``True`` if and only if there is a process with id pid running.
"""
try:
os.kill(pid, 0)
Expand Down Expand Up @@ -83,7 +83,7 @@ def run_gdb(pid, color):
"""
Execute gdb.
"""
whichgdb = find_executable('gdb')
whichgdb = which('gdb')
if whichgdb is None:
return b"Cannot find gdb installed"

Expand Down

0 comments on commit 83b8a08

Please sign in to comment.