[pypy-commit] pypy py3.3: Re-add has_so_extension() to module/imp/importing.py (it was removed during the last merge because I thought it's dead code).

mjacob noreply at buildbot.pypy.org
Thu Jun 18 22:08:19 CEST 2015


Author: Manuel Jacob <me at manueljacob.de>
Branch: py3.3
Changeset: r78191:f02eca6ea2cb
Date: 2015-06-18 20:25 +0200
http://bitbucket.org/pypy/pypy/changeset/f02eca6ea2cb/

Log:	Re-add has_so_extension() to module/imp/importing.py (it was removed
	during the last merge because I thought it's dead code).

diff --git a/pypy/module/imp/importing.py b/pypy/module/imp/importing.py
--- a/pypy/module/imp/importing.py
+++ b/pypy/module/imp/importing.py
@@ -52,6 +52,10 @@
 
     return '.' + soabi + SO
 
+def has_so_extension(space):
+    return (space.config.objspace.usemodules.cpyext or
+            space.config.objspace.usemodules._cffi_backend)
+
 def check_sys_modules(space, w_modulename):
     return space.finditem(space.sys.get('modules'), w_modulename)
 


More information about the pypy-commit mailing list