diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-23 13:53:10 -0800 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-23 15:47:10 -0800 |
commit | 27cea0df708fdd13edeaadacc0b8ca8b768616b9 (patch) | |
tree | 0ebe3c91e6e50018743f26a82e29e6a894931e92 /generated_tests/gen_builtin_uniform_tests.py | |
parent | 13770974f4b93c89314d58ad1f20e8bf502dfbfa (diff) |
generated tests: Use __future__ division
This coverts all of the generators to use python3 style division. None
of these generators are currently affected by this change (generally the
author of the generator has taken pains to ensure that python2 division
does the right thing by explicitly converting between int and float),
but it should reduce surprise to future modifiers, which is good.
v2: - add this patch
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'generated_tests/gen_builtin_uniform_tests.py')
-rw-r--r-- | generated_tests/gen_builtin_uniform_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generated_tests/gen_builtin_uniform_tests.py b/generated_tests/gen_builtin_uniform_tests.py index 8347b1c28..ba0022b89 100644 --- a/generated_tests/gen_builtin_uniform_tests.py +++ b/generated_tests/gen_builtin_uniform_tests.py @@ -44,7 +44,7 @@ # With the optional argument --names-only, it only outputs the names # of the files; it doesn't generate them. -from __future__ import print_function +from __future__ import print_function, division from builtin_function import * import abc import numpy |