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 /doc/sphinxext | |
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 'doc/sphinxext')
-rw-r--r-- | doc/sphinxext/plot_directive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/sphinxext/plot_directive.py b/doc/sphinxext/plot_directive.py index a91b436a7..7fa827664 100644 --- a/doc/sphinxext/plot_directive.py +++ b/doc/sphinxext/plot_directive.py @@ -456,8 +456,8 @@ def run_code(code, code_path, ns=None): if ns is None: ns = {} if not ns: - exec setup.config.plot_pre_code in ns - exec code in ns + exec(setup.config.plot_pre_code, ns) + exec(code, ns) except (Exception, SystemExit) as err: raise PlotError(traceback.format_exc()) finally: |