summaryrefslogtreecommitdiff
path: root/numpy/polynomial
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-02-17 16:48:07 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-02-17 16:48:07 +0000
commit46cbb50b560c8a75d674f43d49b2462f5296aaa0 (patch)
treea9d26c5834ea174255f6657a977e9bf4866baef9 /numpy/polynomial
parent624b33dc6a83dc9b7933a99a191378547d442324 (diff)
downloadnumpy-46cbb50b560c8a75d674f43d49b2462f5296aaa0.tar.gz
BUG: Import warnings module in polynomial modules.
Diffstat (limited to 'numpy/polynomial')
-rw-r--r--numpy/polynomial/chebyshev.py2
-rw-r--r--numpy/polynomial/polynomial.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py
index 42d7db018..e25ed8a6f 100644
--- a/numpy/polynomial/chebyshev.py
+++ b/numpy/polynomial/chebyshev.py
@@ -69,8 +69,8 @@ __all__ = ['chebzero', 'chebone', 'chebx', 'chebdomain', 'chebline',
import numpy as np
import numpy.linalg as la
import polyutils as pu
+import warnings
from polytemplate import polytemplate
-from polyutils import RankWarning, PolyError, PolyDomainError
chebtrim = pu.trimcoef
diff --git a/numpy/polynomial/polynomial.py b/numpy/polynomial/polynomial.py
index 90b474d01..d5681f9ce 100644
--- a/numpy/polynomial/polynomial.py
+++ b/numpy/polynomial/polynomial.py
@@ -50,6 +50,7 @@ __all__ = ['polyzero', 'polyone', 'polyx', 'polydomain',
import numpy as np
import numpy.linalg as la
import polyutils as pu
+import warnings
from polytemplate import polytemplate
polytrim = pu.trimcoef