summaryrefslogtreecommitdiffstats
path: root/Lib/hotshot
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/hotshot')
-rw-r--r--Lib/hotshot/log.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/hotshot/log.py b/Lib/hotshot/log.py
index a5020dd..5c01996 100644
--- a/Lib/hotshot/log.py
+++ b/Lib/hotshot/log.py
@@ -95,12 +95,7 @@ class LogReader:
def next(self, index=0):
while 1:
- try:
- what, tdelta, fileno, lineno = self._nextitem()
- except TypeError:
- # logreader().next() returns None at the end
- self._reader.close()
- raise StopIteration()
+ what, tdelta, fileno, lineno = self._nextitem()
# handle the most common cases first