[pypy-svn] r45004 - pypy/dist/pypy/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Fri Jul 13 11:09:57 CEST 2007


Author: fijal
Date: Fri Jul 13 11:09:52 2007
New Revision: 45004

Modified:
   pypy/dist/pypy/rpython/lltypesystem/rfficache.py
Log:
Move import one level below to allow tests to run on translated pypy-c


Modified: pypy/dist/pypy/rpython/lltypesystem/rfficache.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/rfficache.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/rfficache.py	Fri Jul 13 11:09:52 2007
@@ -6,10 +6,10 @@
 import py
 import os
 from pypy.translator.tool.cbuild import build_executable
-from py.compat.subprocess import PIPE, Popen
 from pypy.tool.udir import udir
 
 def sizeof_c_type(c_typename, includes={}, compiler_exe=None):
+    from py.compat.subprocess import PIPE, Popen
     includes['stdio.h'] = True
     includes['sys' + os.path.sep + 'types.h'] = True
     include_string = "\n".join(["#include <%s>" % i for i in includes.keys()])



More information about the Pypy-commit mailing list