Author: Amaury Forgeot d'Arc <[email protected]>
Branch: 
Changeset: r47835:be4e5bec46c1
Date: 2011-10-05 22:01 +0200
http://bitbucket.org/pypy/pypy/changeset/be4e5bec46c1/

Log:    Fix sys.getprofile() docstring

diff --git a/pypy/module/sys/vm.py b/pypy/module/sys/vm.py
--- a/pypy/module/sys/vm.py
+++ b/pypy/module/sys/vm.py
@@ -140,8 +140,8 @@
     space.getexecutioncontext().setprofile(w_func)
 
 def getprofile(space):
-    """Set the profiling function.  It will be called on each function call
-and return.  See the profiler chapter in the library manual."""
+    """Return the profiling function set with sys.setprofile.
+See the profiler chapter in the library manual."""
     w_func = space.getexecutioncontext().getprofile()
     if w_func is not None:
         return w_func
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to