diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-03-01 10:43:49 -0800 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-03-01 10:43:49 -0800 |
commit | d12dad4d42a4684d1e0a40c0105772ebab92d6bc (patch) | |
tree | 91609b16e08199176342f0a50776135e48d34334 /numpy/polynomial | |
parent | 890ee94dd90769d303025e10d906f584088516d3 (diff) | |
parent | cabc07e185a0ffad5f8055760b385aa5cca85896 (diff) | |
download | numpy-d12dad4d42a4684d1e0a40c0105772ebab92d6bc.tar.gz |
Merge pull request #3026 from charris/2to3-fix-print
2to3: Put `from __future__ import division` in every python file.
Diffstat (limited to 'numpy/polynomial')
-rw-r--r-- | numpy/polynomial/__init__.py | 2 | ||||
-rw-r--r-- | numpy/polynomial/polytemplate.py | 2 | ||||
-rw-r--r-- | numpy/polynomial/setup.py | 2 | ||||
-rw-r--r-- | numpy/polynomial/tests/test_printing.py | 2 |
4 files changed, 7 insertions, 1 deletions
diff --git a/numpy/polynomial/__init__.py b/numpy/polynomial/__init__.py index 8e06fa171..684720828 100644 --- a/numpy/polynomial/__init__.py +++ b/numpy/polynomial/__init__.py @@ -13,6 +13,8 @@ implemented as operations on the coefficients. Additional (module-specific) information can be found in the docstring for the module of interest. """ +from __future__ import division + import warnings from polynomial import Polynomial diff --git a/numpy/polynomial/polytemplate.py b/numpy/polynomial/polytemplate.py index bb5effc0e..7d67c914c 100644 --- a/numpy/polynomial/polytemplate.py +++ b/numpy/polynomial/polytemplate.py @@ -9,6 +9,8 @@ creating additional specific polynomial classes (e.g., Legendre, Jacobi, etc.) in the future, such that all these classes will have a common API. """ +from __future__ import division + import string import sys diff --git a/numpy/polynomial/setup.py b/numpy/polynomial/setup.py index 173fd126c..f1e68b576 100644 --- a/numpy/polynomial/setup.py +++ b/numpy/polynomial/setup.py @@ -1,4 +1,4 @@ - +from __future__ import division def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration diff --git a/numpy/polynomial/tests/test_printing.py b/numpy/polynomial/tests/test_printing.py index 9803d931c..889966051 100644 --- a/numpy/polynomial/tests/test_printing.py +++ b/numpy/polynomial/tests/test_printing.py @@ -1,3 +1,5 @@ +from __future__ import division + import numpy.polynomial as poly from numpy.testing import TestCase, run_module_suite, assert_ |