summaryrefslogtreecommitdiff
path: root/numpy/polynomial
diff options
context:
space:
mode:
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