[Python-checkins] python/dist/src/Lib/hotshot __init__.py,1.4,1.5

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
2002年7月18日 12:17:56 -0700


Update of /cvsroot/python/python/dist/src/Lib/hotshot
In directory usw-pr-cvs1:/tmp/cvs-serv32508
Modified Files:
	__init__.py 
Log Message:
Expose the fileno() method of the underlying profiler.
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/hotshot/__init__.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** __init__.py	16 Apr 2002 19:27:23 -0000	1.4
--- __init__.py	18 Jul 2002 19:17:54 -0000	1.5
***************
*** 26,29 ****
--- 26,33 ----
 self._prof.close()
 
+ def fileno(self):
+ """Return the file descriptor of the profiler's log file."""
+ return self._prof.fileno()
+ 
 def start(self):
 """Start the profiler."""

AltStyle によって変換されたページ (->オリジナル) /