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/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/testing/utils.py') diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 2d3965594..ecf9fb6bd 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -881,7 +881,7 @@ def assert_array_less(x, y, err_msg='', verbose=True): header='Arrays are not less-ordered') def runstring(astr, dict): - exec astr in dict + exec(astr, dict) def assert_string_equal(actual, desired): """ @@ -1108,7 +1108,7 @@ def measure(code_str,times=1,label=None): elapsed = jiffies() while i < times: i += 1 - exec code in globs,locs + exec(code, globs,locs) elapsed = jiffies() - elapsed return 0.01*elapsed -- cgit v1.2.1