[pypy-commit] pypy default: cleanup

bdkearns noreply at buildbot.pypy.org
Thu May 1 01:59:21 CEST 2014


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r71113:388f7ec7a85b
Date: 2014-04-30 19:58 -0400
http://bitbucket.org/pypy/pypy/changeset/388f7ec7a85b/

Log:	cleanup

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
@@ -208,15 +208,11 @@
 
 
 def create_spec_for_function(space, w_func):
-    if w_func.w_module is None:
-        module = ''
-    else:
+    if w_func.w_module is not None:
         module = space.str_w(w_func.w_module)
-        if module == '__builtin__':
-            module = ''
-        else:
-            module += '.'
-    return '{%s%s}' % (module, w_func.name)
+        if module != '__builtin__':
+            return '{%s.%s}' % (module, w_func.name)
+    return '{%s}' % w_func.name
 
 
 def create_spec_for_object(space, w_obj):


More information about the pypy-commit mailing list