[Python-checkins] r83640 - python/branches/release26-maint/Lib/hotshot/log.py

ezio.melotti python-checkins at python.org
Tue Aug 3 09:03:40 CEST 2010


Author: ezio.melotti
Date: Tue Aug  3 09:03:40 2010
New Revision: 83640

Log:
Fix deprecation warnings in test_hotshot.py

Modified:
   python/branches/release26-maint/Lib/hotshot/log.py

Modified: python/branches/release26-maint/Lib/hotshot/log.py
==============================================================================
--- python/branches/release26-maint/Lib/hotshot/log.py	(original)
+++ python/branches/release26-maint/Lib/hotshot/log.py	Tue Aug  3 09:03:40 2010
@@ -30,7 +30,7 @@
         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


More information about the Python-checkins mailing list