[pypy-commit] pypy default: remove write_all_code_objects, this method is not called when it does not exist

plan_rich pypy.commits at gmail.com
Tue Jul 25 09:50:05 EDT 2017


Author: Richard Plangger <planrichi at gmail.com>
Branch: 
Changeset: r91968:ac3af78f56db
Date: 2017-07-23 18:22 -0400
http://bitbucket.org/pypy/pypy/changeset/ac3af78f56db/

Log:	remove write_all_code_objects, this method is not called when it
	does not exist

diff --git a/pypy/module/_vmprof/__init__.py b/pypy/module/_vmprof/__init__.py
--- a/pypy/module/_vmprof/__init__.py
+++ b/pypy/module/_vmprof/__init__.py
@@ -11,7 +11,6 @@
     interpleveldefs = {
         'enable': 'interp_vmprof.enable',
         'disable': 'interp_vmprof.disable',
-        'write_all_code_objects': 'interp_vmprof.write_all_code_objects',
         'is_enabled': 'interp_vmprof.is_enabled',
         'get_profile_path': 'interp_vmprof.get_profile_path',
         'stop_sampling': 'interp_vmprof.stop_sampling',
diff --git a/pypy/module/_vmprof/interp_vmprof.py b/pypy/module/_vmprof/interp_vmprof.py
--- a/pypy/module/_vmprof/interp_vmprof.py
+++ b/pypy/module/_vmprof/interp_vmprof.py
@@ -70,11 +70,6 @@
     except rvmprof.VMProfError as e:
         raise VMProfError(space, e)
 
-def write_all_code_objects(space):
-    """ Needed on cpython, just empty function here
-    """
-    pass
-
 def disable(space):
     """Disable vmprof.  Remember to close the file descriptor afterwards
     if necessary.


More information about the pypy-commit mailing list