Commits

Ezio Melotti committed 86d119e

Fix deprecation warnings in test_hotshot.py

  • Participants
  • Parent commits 1996494
  • Branches 2.6

Comments (0)

Files changed (1)

File Lib/hotshot/log.py

         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