From: Fred Drake Date: Mon, 5 Aug 2002 22:16:40 +0000 (+0000) Subject: We only need to check for StopIteration here. X-Git-Tag: v2.3c1~4682 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63c4220f61b9cbfbd55160d0b2ab7e859d74e820;p=thirdparty%2FPython%2Fcpython.git We only need to check for StopIteration here. --- diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py index c4d24849311a..dad2bd4f2cea 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