Commit fbe36082 authored by Fred Drake's avatar Fred Drake

Simplify; the low-level log reader is now always a modern iterator,

and should never return None.  (It only did this for an old version of
HotShot that was trying to still work with a patched Python 2.1.)
parent 302e2bb8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment