mirror of
https://github.com/python/cpython.git
synced 2026-02-05 09:25:35 +00:00
Remove a dict.has_key() usage in profile to silence a -3 DeprecationWarning.
This commit is contained in:
parent
52f03c5d20
commit
cc2f7b4994
1 changed files with 1 additions and 1 deletions
|
|
@ -318,7 +318,7 @@ def trace_dispatch_c_call (self, frame, t):
|
|||
fn = ("", 0, self.c_func_name)
|
||||
self.cur = (t, 0, 0, fn, frame, self.cur)
|
||||
timings = self.timings
|
||||
if timings.has_key(fn):
|
||||
if fn in timings:
|
||||
cc, ns, tt, ct, callers = timings[fn]
|
||||
timings[fn] = cc, ns+1, tt, ct, callers
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue