]> granicus.if.org Git - python/commitdiff
Expose the fileno() method of the underlying profiler.
authorFred Drake <fdrake@acm.org>
Thu, 18 Jul 2002 19:17:54 +0000 (19:17 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 18 Jul 2002 19:17:54 +0000 (19:17 +0000)
Lib/hotshot/__init__.py

index a23b2ee652664cee5e5f9153a3bf76b5a1541bce..b9f7866e4eddf1c576e7fa782a2ba0c07773a74e 100644 (file)
@@ -25,6 +25,10 @@ class Profile:
         """Close the logfile and terminate the profiler."""
         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."""
         self._prof.start()