From 10985dc3458acd9d3286988dec1a27ece5cac25d Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 20 Feb 2010 18:13:57 +0000 Subject: 3K: f2py: break cyclic imports (which are not allowed on Py3) by moving them to functions --- numpy/f2py/cb_rules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/f2py/cb_rules.py') diff --git a/numpy/f2py/cb_rules.py b/numpy/f2py/cb_rules.py index c8f9f2c41..ce297ed79 100644 --- a/numpy/f2py/cb_rules.py +++ b/numpy/f2py/cb_rules.py @@ -27,7 +27,6 @@ outmess=sys.stdout.write show=pprint.pprint from auxfuncs import * -import capi_maps import cfuncs ################## Rules for callback function ############## @@ -415,6 +414,8 @@ def buildcallbacks(m): def buildcallback(rout,um): global cb_map + import capi_maps + outmess('\tConstructing call-back function "cb_%s_in_%s"\n'%(rout['name'],um)) args,depargs=getargs(rout) capi_maps.depargs=depargs -- cgit v1.2.1