diff options
author | Fred Drake <fdrake@acm.org> | 2002-08-05 22:16:40 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-08-05 22:16:40 (GMT) |
commit | 63c4220f61b9cbfbd55160d0b2ab7e859d74e820 (patch) | |
tree | db58924ea8421ce079028b9d16a3d5de31355432 | |
parent | 94caa78ebf5e52716b383236f1a737a6bed57bf6 (diff) | |
download | cpython-63c4220f61b9cbfbd55160d0b2ab7e859d74e820.zip cpython-63c4220f61b9cbfbd55160d0b2ab7e859d74e820.tar.gz cpython-63c4220f61b9cbfbd55160d0b2ab7e859d74e820.tar.bz2 |
We only need to check for StopIteration here.
-rw-r--r-- | Lib/test/test_hotshot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py index c4d2484..dad2bd4 100644 --- a/Lib/test/test_hotshot.py +++ b/Lib/test/test_hotshot.py @@ -30,7 +30,7 @@ class UnlinkingLogReader(hotshot.log.LogReader): def next(self, index=None): try: return hotshot.log.LogReader.next(self) - except (IndexError, StopIteration): + except StopIteration: self.close() os.unlink(self.__logfn) raise |