Skip to content

Commit

Permalink
avoid use of .has_key()
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder authored and Petr Viktorin committed Nov 22, 2017
1 parent 08ff14e commit 0cd22c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/t_cidict.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def test_cidict(self):
cix_items.sort()
self.assertEqual(cix_items, [('AbCDeF',123), ('xYZ',987)])
del cix["abcdEF"]
self.assertEqual(cix._keys.has_key("abcdef"), False)
self.assertEqual(cix._keys.has_key("AbCDef"), False)
self.assertEqual("abcdef" in cix, False)
self.assertEqual("AbCDef" in cix._keys, False)


if __name__ == '__main__':
Expand Down

0 comments on commit 0cd22c7

Please sign in to comment.