summaryrefslogtreecommitdiff
path: root/numpy/_import_tools.py
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/_import_tools.py
parent0934653e151969f6912c911b5113306bd5f450f1 (diff)
downloadnumpy-2429298dd8ddf797c3c89e65eb8a9b9e8f72a299.tar.gz
2to3: apply exec fixer results.
This changes the `exec` command to the `exec` function.
Diffstat (limited to 'numpy/_import_tools.py')
-rw-r--r--numpy/_import_tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_import_tools.py b/numpy/_import_tools.py
index 6223dd57f..93fdaf3a8 100644
--- a/numpy/_import_tools.py
+++ b/numpy/_import_tools.py
@@ -66,7 +66,7 @@ class PackageLoader(object):
break
else:
try:
- exec 'import %s.info as info' % (package_name)
+ exec('import %s.info as info' % (package_name))
info_modules[package_name] = info
except ImportError as msg:
self.warn('No scipy-style subpackage %r found in %s. '\