Commit cd37dd8e authored by Ezio Melotti's avatar Ezio Melotti

Fix deprecation warnings in test_hotshot.py

parent 670048de
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment