summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-02-28 09:36:20 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-02-28 09:36:20 -0700
commit2429298dd8ddf797c3c89e65eb8a9b9e8f72a299 (patch)
treed55a7d00d01432143ab1a7aadfffd33c04dff4a1 /numpy/f2py
parent0934653e151969f6912c911b5113306bd5f450f1 (diff)
downloadnumpy-2429298dd8ddf797c3c89e65eb8a9b9e8f72a299.tar.gz
2to3: apply exec fixer results.
This changes the `exec` command to the `exec` function.
Diffstat (limited to 'numpy/f2py')
-rw-r--r--numpy/f2py/tests/test_array_from_pyobj.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/tests/test_array_from_pyobj.py b/numpy/f2py/tests/test_array_from_pyobj.py
index c1b927c1c..0d525f3cf 100644
--- a/numpy/f2py/tests/test_array_from_pyobj.py
+++ b/numpy/f2py/tests/test_array_from_pyobj.py
@@ -530,14 +530,14 @@ class _test_shared_memory:
for t in Type._type_names:
- exec '''\
+ exec('''\
class test_%s_gen(unittest.TestCase,
_test_shared_memory
):
def setUp(self):
self.type = Type(%r)
array = lambda self,dims,intent,obj: Array(Type(%r),dims,intent,obj)
-''' % (t,t,t)
+''' % (t,t,t))
if __name__ == "__main__":
setup()