Skip to content

Commit 028461b

Browse files
committed
Fix linter issues
Signed-off-by: Min Lim <min.yeol.lim@intel.com>
1 parent f7b8694 commit 028461b

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

gprofiler/profilers/php.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
from gprofiler.profilers.profiler_base import ProfilerBase
3232
from gprofiler.profilers.registry import ProfilerArgument, register_profiler
3333
from gprofiler.utils import (
34+
cleanup_process_reference,
3435
random_prefix,
3536
reap_process,
3637
resource_path,
3738
start_process,
3839
wait_event,
39-
cleanup_process_reference,
4040
)
4141

4242
logger = get_logger_adapter(__name__)

gprofiler/profilers/python_ebpf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
from gprofiler.profilers import python
3535
from gprofiler.profilers.profiler_base import ProfilerBase
3636
from gprofiler.utils import (
37+
cleanup_process_reference,
3738
random_prefix,
3839
reap_process,
3940
resource_path,
4041
run_process,
4142
start_process,
4243
wait_event,
4344
wait_for_file_by_prefix,
44-
cleanup_process_reference
4545
)
4646
from gprofiler.utils.collapsed_format import parse_many_collapsed
4747

@@ -328,7 +328,7 @@ def snapshot(self) -> ProcessToProfileData:
328328
if collapsed_path is None:
329329
logger.error("collapsed_path is None, cannot parse output")
330330
return {}
331-
331+
332332
try:
333333
collapsed_text = collapsed_path.read_text()
334334
finally:

gprofiler/utils/perf_process.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99
from psutil import Process
1010

11+
from gprofiler.exceptions import CalledProcessError
1112
from gprofiler.log import get_logger_adapter
1213
from gprofiler.utils import (
14+
cleanup_process_reference,
1315
reap_process,
1416
remove_files_by_prefix,
1517
remove_path,
@@ -18,11 +20,8 @@
1820
start_process,
1921
wait_event,
2022
wait_for_file_by_prefix,
21-
cleanup_process_reference
2223
)
2324

24-
from gprofiler.exceptions import CalledProcessError
25-
2625
logger = get_logger_adapter(__name__)
2726

2827

0 commit comments

Comments
 (0)