diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-07-18 14:54:28 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-07-18 14:54:28 +0000 |
commit | db728b68f13572031948f8a8aecd3019f6d19f84 (patch) | |
tree | f6ea814ba64637f7aa60f4eb8fbff37bf13071ab /Lib/hotshot/log.py | |
parent | eb95f6721e718f09fbecebc2d0f0195495f740eb (diff) | |
download | cpython-db728b68f13572031948f8a8aecd3019f6d19f84.tar.gz |
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.
Diffstat (limited to 'Lib/hotshot/log.py')
-rw-r--r-- | Lib/hotshot/log.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/hotshot/log.py b/Lib/hotshot/log.py index 335fff90ff..9084461c29 100644 --- a/Lib/hotshot/log.py +++ b/Lib/hotshot/log.py @@ -51,6 +51,9 @@ class LogReader: self._append = self._stack.append 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. |