From 2429298dd8ddf797c3c89e65eb8a9b9e8f72a299 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 28 Feb 2013 09:36:20 -0700 Subject: 2to3: apply exec fixer results. This changes the `exec` command to the `exec` function. --- numpy/testing/numpytest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/testing/numpytest.py') diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py index f72626cf0..200c88b03 100644 --- a/numpy/testing/numpytest.py +++ b/numpy/testing/numpytest.py @@ -42,7 +42,7 @@ def importall(package): continue name = package_name+'.'+subpackage_name try: - exec 'import %s as m' % (name) + exec('import %s as m' % (name)) except Exception as msg: print 'Failed importing %s: %s' %(name, msg) continue -- cgit v1.2.1