Skip to content

Commit 39a7a8f

Browse files
committed
fixing flake warning
1 parent 9b46595 commit 39a7a8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/tracing_ext-demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def handle_end_method_call(self, ret):
4040
self.end_ts = time.time()
4141

4242
def __exit__(self, exc_type, value, traceback):
43-
print(f"method {self.method_name} took {self.end_ts - self.start_ts} secs to execute")
43+
call_dur = self.end_ts - self.start_ts
44+
print(f"method {self.method_name} took {call_dur} secs to execute")
4445

4546

4647
pf.register.method_call_ctx_factory = tracer.create_tracer

0 commit comments

Comments
 (0)