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

This commit is contained in:
Brett Cannon 2008-08-03 22:38:19 +00:00
parent 52f03c5d20
commit cc2f7b4994

View file

@ -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: