summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/hotshot/log.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/hotshot/log.py b/Lib/hotshot/log.py
index 9084461..a5020dd 100644
--- a/Lib/hotshot/log.py
+++ b/Lib/hotshot/log.py
@@ -21,12 +21,6 @@ EXIT = WHAT_EXIT
LINE = WHAT_LINENO
-try:
- StopIteration
-except NameError:
- StopIteration = IndexError
-
-
class LogReader:
def __init__(self, logfn):
# fileno -> filename
@@ -54,6 +48,10 @@ class LogReader:
def close(self):
self._reader.close()
+ def fileno(self):
+ """Return the file descriptor of the log reader's log file."""
+ return self._reader.fileno()
+
def addinfo(self, key, value):
"""This method is called for each additional ADD_INFO record.