Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r71106:fc261cbeb029
Date: 2014-04-30 22:56 +0200
http://bitbucket.org/pypy/pypy/changeset/fc261cbeb029/

Log:    Trying out with a promote_string() here...

diff --git a/pypy/module/_lsprof/interp_lsprof.py 
b/pypy/module/_lsprof/interp_lsprof.py
--- a/pypy/module/_lsprof/interp_lsprof.py
+++ b/pypy/module/_lsprof/interp_lsprof.py
@@ -343,6 +343,7 @@
 
     def _enter_builtin_call(self, key):
         self = jit.promote(self)
+        key = jit.promote_string(key)
         entry = self._get_or_make_builtin_entry(key)
         self.current_context = ProfilerContext(self, entry)
 
@@ -351,6 +352,7 @@
         if context is None:
             return
         self = jit.promote(self)
+        key = jit.promote_string(key)
         try:
             entry = self._get_or_make_builtin_entry(key, False)
         except KeyError:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to