[Python-checkins] python/dist/src/Lib/hotshot log.py,1.8,1.9
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Thu, 18 Jul 2002 12:17:23 -0700
Update of /cvsroot/python/python/dist/src/Lib/hotshot
In directory usw-pr-cvs1:/tmp/cvs-serv32277
Modified Files:
log.py
Log Message:
Expose the fileno() method of the underlying log reader.
Remove the crufty support for Python's that don't have StopIteration;
the HotShot patch for Python 2.1 has not been maintained.
Index: log.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/hotshot/log.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** log.py 18 Jul 2002 14:54:28 -0000 1.8
--- log.py 18 Jul 2002 19:17:20 -0000 1.9
***************
*** 22,31 ****
- try:
- StopIteration
- except NameError:
- StopIteration = IndexError
-
-
class LogReader:
def __init__(self, logfn):
--- 22,25 ----
***************
*** 54,57 ****
--- 48,55 ----
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):