summaryrefslogtreecommitdiff
path: root/numpy/polynomial
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/polynomial')
-rw-r--r--numpy/polynomial/__init__.py2
-rw-r--r--numpy/polynomial/polytemplate.py2
-rw-r--r--numpy/polynomial/setup.py2
-rw-r--r--numpy/polynomial/tests/test_printing.py2
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_