diff options
Diffstat (limited to 'Tools/pybench/Dict.py')
-rw-r--r-- | Tools/pybench/Dict.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/pybench/Dict.py b/Tools/pybench/Dict.py index 9cdd682..cb039b0 100644 --- a/Tools/pybench/Dict.py +++ b/Tools/pybench/Dict.py @@ -351,7 +351,7 @@ class SimpleDictManipulation(Test): def test(self): d = {} - has_key = d.has_key + has_key = lambda key: key in d for i in xrange(self.rounds): @@ -498,7 +498,7 @@ class SimpleDictManipulation(Test): def calibrate(self): d = {} - has_key = d.has_key + has_key = lambda key: key in d for i in xrange(self.rounds): pass |