Skip to content

Commit e614ce8

Browse files
committed
commit
1 parent a80bb5b commit e614ce8

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

codeflash/tracing/tracing_new_process.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def tracer_logic(self, frame: FrameType, event: str) -> None:
337337
else:
338338
resolved = os.path.realpath(co_filename)
339339
# startswith is cheaper than Path.is_relative_to, os.path.exists avoids Path construction
340-
is_valid = resolved.startswith(self.project_root_str) and os.path.exists(resolved)
340+
is_valid = resolved.startswith(self.project_root_str) and os.path.exists(resolved) # noqa: PTH110
341341
self.path_cache[co_filename] = (resolved, is_valid)
342342
if not is_valid:
343343
return
@@ -435,16 +435,7 @@ def tracer_logic(self, frame: FrameType, event: str) -> None:
435435

436436
cur.execute(
437437
"INSERT INTO function_calls VALUES(?, ?, ?, ?, ?, ?, ?, ?)",
438-
(
439-
event,
440-
code.co_name,
441-
class_name,
442-
file_name,
443-
frame.f_lineno,
444-
frame.f_back.__hash__(),
445-
t_ns,
446-
local_vars,
447-
),
438+
(event, code.co_name, class_name, file_name, frame.f_lineno, frame.f_back.__hash__(), t_ns, local_vars),
448439
)
449440
self.trace_count += 1
450441
self.next_insert -= 1

0 commit comments

Comments
 (0)