Commit cc2f7b49 authored by Brett Cannon's avatar Brett Cannon

Remove a dict.has_key() usage in profile to silence a -3 DeprecationWarning.

parent 52f03c5d
......@@ -318,7 +318,7 @@ class Profile:
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment