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):
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4