Skip to content

Commit

Permalink
Minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Sep 22, 2021
1 parent f9795ed commit ecfb9de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ofunctions/process/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@


import os
import sys
import psutil
import signal
from typing import Optional, Union, List
from typing import Optional, List


def kill_childs(
Expand Down Expand Up @@ -71,7 +70,7 @@ def kill_childs(
sig = None

def _process_killer(
process, # type: Union[subprocess.Popen, psutil.Process]
process, # type: psutil.Process
sig, # type: signal.valid_signals
soft_kill, # type: bool
):
Expand Down Expand Up @@ -115,7 +114,7 @@ def _process_killer(

def get_processes_by_name(name: str, ignorecase: bool = None) -> Optional[List[psutil.Process]]:
"""
Get a process by name
Get a list of processes by name
"""

if ignorecase is None:
Expand Down

0 comments on commit ecfb9de

Please sign in to comment.