diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-02-27 13:26:58 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-03-01 11:22:47 -0700 |
commit | 6aa264c4bad9c89ccdd9ecd5a1cb5ef10643ec51 (patch) | |
tree | 15cad18dacf1ef03380c957ed9af4f39b94c5012 /numpy/f2py/tests | |
parent | 3c13c0a925276130d66be490eed4ae337712cce2 (diff) | |
download | numpy-6aa264c4bad9c89ccdd9ecd5a1cb5ef10643ec51.tar.gz |
2to3: Put `from __future__ import division in every python file.
This should be harmless, as we already are division clean. However,
placement of this import takes some care. In the future a script
can be used to append new features without worry, at least until
such time as it exceeds a single line. Having that ability will
make it easier to deal with absolute imports and printing updates.
Diffstat (limited to 'numpy/f2py/tests')
-rw-r--r-- | numpy/f2py/tests/test_array_from_pyobj.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_assumed_shape.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_callback.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_kind.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_mixed.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_return_character.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_return_complex.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_return_integer.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_return_logical.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_return_real.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_size.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/util.py | 1 |
12 files changed, 23 insertions, 0 deletions
diff --git a/numpy/f2py/tests/test_array_from_pyobj.py b/numpy/f2py/tests/test_array_from_pyobj.py index 0d525f3cf..ff8c16cd1 100644 --- a/numpy/f2py/tests/test_array_from_pyobj.py +++ b/numpy/f2py/tests/test_array_from_pyobj.py @@ -1,3 +1,5 @@ +from __future__ import division + import unittest import os import sys diff --git a/numpy/f2py/tests/test_assumed_shape.py b/numpy/f2py/tests/test_assumed_shape.py index e501b13c3..728c034ec 100644 --- a/numpy/f2py/tests/test_assumed_shape.py +++ b/numpy/f2py/tests/test_assumed_shape.py @@ -1,3 +1,5 @@ +from __future__ import division + import os import math diff --git a/numpy/f2py/tests/test_callback.py b/numpy/f2py/tests/test_callback.py index 5e0cda242..f903fbcb4 100644 --- a/numpy/f2py/tests/test_callback.py +++ b/numpy/f2py/tests/test_callback.py @@ -1,3 +1,5 @@ +from __future__ import division + from numpy.testing import * from numpy import array import math diff --git a/numpy/f2py/tests/test_kind.py b/numpy/f2py/tests/test_kind.py index a6d485a88..56a747096 100644 --- a/numpy/f2py/tests/test_kind.py +++ b/numpy/f2py/tests/test_kind.py @@ -1,3 +1,5 @@ +from __future__ import division + import os import math diff --git a/numpy/f2py/tests/test_mixed.py b/numpy/f2py/tests/test_mixed.py index f786f38dd..dc29d2b5d 100644 --- a/numpy/f2py/tests/test_mixed.py +++ b/numpy/f2py/tests/test_mixed.py @@ -1,3 +1,5 @@ +from __future__ import division + import os import math diff --git a/numpy/f2py/tests/test_return_character.py b/numpy/f2py/tests/test_return_character.py index 67c542688..fd8355ac3 100644 --- a/numpy/f2py/tests/test_return_character.py +++ b/numpy/f2py/tests/test_return_character.py @@ -1,3 +1,5 @@ +from __future__ import division + from numpy.testing import * from numpy import array from numpy.compat import asbytes diff --git a/numpy/f2py/tests/test_return_complex.py b/numpy/f2py/tests/test_return_complex.py index f8c6d226a..4cdc03993 100644 --- a/numpy/f2py/tests/test_return_complex.py +++ b/numpy/f2py/tests/test_return_complex.py @@ -1,3 +1,5 @@ +from __future__ import division + from numpy.testing import * from numpy import array import util diff --git a/numpy/f2py/tests/test_return_integer.py b/numpy/f2py/tests/test_return_integer.py index e1b3a37aa..a1af6b932 100644 --- a/numpy/f2py/tests/test_return_integer.py +++ b/numpy/f2py/tests/test_return_integer.py @@ -1,3 +1,5 @@ +from __future__ import division + from numpy.testing import * from numpy import array import util diff --git a/numpy/f2py/tests/test_return_logical.py b/numpy/f2py/tests/test_return_logical.py index 059b843dc..1c8dce532 100644 --- a/numpy/f2py/tests/test_return_logical.py +++ b/numpy/f2py/tests/test_return_logical.py @@ -1,3 +1,5 @@ +from __future__ import division + from numpy.testing import * from numpy import array import util diff --git a/numpy/f2py/tests/test_return_real.py b/numpy/f2py/tests/test_return_real.py index 5dc12708e..943a4972d 100644 --- a/numpy/f2py/tests/test_return_real.py +++ b/numpy/f2py/tests/test_return_real.py @@ -1,3 +1,5 @@ +from __future__ import division + from numpy.testing import * from numpy import array import math diff --git a/numpy/f2py/tests/test_size.py b/numpy/f2py/tests/test_size.py index a548e9885..72443b4f6 100644 --- a/numpy/f2py/tests/test_size.py +++ b/numpy/f2py/tests/test_size.py @@ -1,3 +1,5 @@ +from __future__ import division + import os import math diff --git a/numpy/f2py/tests/util.py b/numpy/f2py/tests/util.py index 627bc0af9..0584ae188 100644 --- a/numpy/f2py/tests/util.py +++ b/numpy/f2py/tests/util.py @@ -5,6 +5,7 @@ Utility functions for - detecting if compilers are present """ +from __future__ import division import os import sys |