diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-02-28 09:36:20 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-02-28 09:36:20 -0700 |
commit | 2429298dd8ddf797c3c89e65eb8a9b9e8f72a299 (patch) | |
tree | d55a7d00d01432143ab1a7aadfffd33c04dff4a1 /numpy/lib/function_base.py | |
parent | 0934653e151969f6912c911b5113306bd5f450f1 (diff) | |
download | numpy-2429298dd8ddf797c3c89e65eb8a9b9e8f72a299.tar.gz |
2to3: apply exec fixer results.
This changes the `exec` command to the `exec` function.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 02dd0ceaf..48fc0d898 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3239,7 +3239,7 @@ def add_newdoc(place, obj, doc): """ try: new = {} - exec 'from %s import %s' % (place, obj) in new + exec('from %s import %s' % (place, obj), new) if isinstance(doc, str): add_docstring(new[obj], doc.strip()) elif isinstance(doc, tuple): |