Author: Maciej Fijalkowski <[email protected]>
Branch: vmprof
Changeset: r76468:cf55b39d3d32
Date: 2015-03-19 12:03 +0200
http://bitbucket.org/pypy/pypy/changeset/cf55b39d3d32/

Log:    kill all_code_info

diff --git a/pypy/module/__pypy__/__init__.py b/pypy/module/__pypy__/__init__.py
--- a/pypy/module/__pypy__/__init__.py
+++ b/pypy/module/__pypy__/__init__.py
@@ -70,7 +70,6 @@
         'debug_stop'                : 'interp_debug.debug_stop',
         'debug_print_once'          : 'interp_debug.debug_print_once',
         'debug_flush'               : 'interp_debug.debug_flush',
-        'all_code_info'             : 'interp_magic.all_code_info',
         'builtinify'                : 'interp_magic.builtinify',
         'lookup_special'            : 'interp_magic.lookup_special',
         'do_what_I_mean'            : 'interp_magic.do_what_I_mean',
diff --git a/pypy/module/__pypy__/interp_magic.py 
b/pypy/module/__pypy__/interp_magic.py
--- a/pypy/module/__pypy__/interp_magic.py
+++ b/pypy/module/__pypy__/interp_magic.py
@@ -131,14 +131,3 @@
     assert isinstance(w_frame, PyFrame)
     w_frame.locals2fast()
 
-def all_code_info(space):
-    ec = space.getexecutioncontext()
-    if not ec.code_info_file_present or ec.code_info_file is None:
-        raise OperationError(space.w_RuntimeError, space.wrap(
-            "Info file not present, error writing it"))
-    ec.code_info_file.flush()
-    ec.code_info_file.seek(0, 0)
-    try:
-        return space.wrap(ec.code_info_file.read())
-    finally:
-        ec.code_info_file.seek(0, 2)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to