diff options
author | njsmith <njs@pobox.com> | 2013-02-28 10:35:37 -0800 |
---|---|---|
committer | njsmith <njs@pobox.com> | 2013-02-28 10:35:37 -0800 |
commit | 2cb5021f2110f7e24a6a30a3a0af8336f46fb621 (patch) | |
tree | eb7a8a5043ab20b1e15e92cea0c6c7ceb57c4eb9 /doc/sphinxext/plot_directive.py | |
parent | ceca28d920225715870d0a83394385e320d1bb22 (diff) | |
parent | 2429298dd8ddf797c3c89e65eb8a9b9e8f72a299 (diff) | |
download | numpy-2cb5021f2110f7e24a6a30a3a0af8336f46fb621.tar.gz |
Merge pull request #3049 from charris/2to3-exec
2to3: apply exec fixer results.
Diffstat (limited to 'doc/sphinxext/plot_directive.py')
-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: |