diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-03 07:03:40 +0000 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-03 07:03:40 +0000 |
commit | cd37dd8e05620ef5ee0277f30654878d71562661 (patch) | |
tree | a7edd676d0dc36c4334ad11e452bf79d3ff3f256 | |
parent | 670048de8040a954f504cfe3a992bf2b5983cf8a (diff) | |
download | cpython-git-cd37dd8e05620ef5ee0277f30654878d71562661.tar.gz |
Fix deprecation warnings in test_hotshot.py
-rw-r--r-- | Lib/hotshot/log.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/hotshot/log.py b/Lib/hotshot/log.py index b7ce259af8..17e8b50515 100644 --- a/Lib/hotshot/log.py +++ b/Lib/hotshot/log.py @@ -30,7 +30,7 @@ class LogReader: self._reader = _hotshot.logreader(logfn) self._nextitem = self._reader.next self._info = self._reader.info - if self._info.has_key('current-directory'): + if 'current-directory' in self._info: self.cwd = self._info['current-directory'] else: self.cwd = None |