mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
SF 563203. Replaced 'has_key()' with 'in'.
This commit is contained in:
parent
9d5e4aa414
commit
54f0222547
54 changed files with 243 additions and 222 deletions
|
|
@ -1015,7 +1015,7 @@ see its docs for details.
|
|||
|
||||
d = self.name2ft
|
||||
for name, (f, t) in other.name2ft.items():
|
||||
if d.has_key(name):
|
||||
if name in d:
|
||||
print "*** Tester.merge: '" + name + "' in both" \
|
||||
" testers; summing outcomes."
|
||||
f2, t2 = d[name]
|
||||
|
|
@ -1024,7 +1024,7 @@ see its docs for details.
|
|||
d[name] = f, t
|
||||
|
||||
def __record_outcome(self, name, f, t):
|
||||
if self.name2ft.has_key(name):
|
||||
if name in self.name2ft:
|
||||
print "*** Warning: '" + name + "' was tested before;", \
|
||||
"summing outcomes."
|
||||
f2, t2 = self.name2ft[name]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue