[Python-checkins] python/dist/src/Lib/hotshot log.py,1.7,1.8
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Thu, 18 Jul 2002 07:54:30 -0700
Update of /cvsroot/python/python/dist/src/Lib/hotshot
In directory usw-pr-cvs1:/tmp/cvs-serv17095/python/Lib/hotshot
Modified Files:
log.py
Log Message:
Gave hotshot.LogReader a close() method, to allow users to close the
file object that LogReader opens. Used it then in test_hotshot; the
test passes again on Windows. Thank Guido for the analysis.
Index: log.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/hotshot/log.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** log.py 18 Jul 2002 14:33:14 -0000 1.7
--- log.py 18 Jul 2002 14:54:28 -0000 1.8
***************
*** 52,55 ****
--- 52,58 ----
self._pop = self._stack.pop
+ def close(self):
+ self._reader.close()
+
def addinfo(self, key, value):
"""This method is called for each additional ADD_INFO record.