From daf9335f0a2cae53735dd12061e6b9c396dc57b1 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 29 Jul 2014 21:38:28 -0600 Subject: MAINT: Remove unused variables and imports in numpy/polynomial/*.py. Detected by pyflakes. --- numpy/polynomial/__init__.py | 2 -- numpy/polynomial/hermite.py | 1 - numpy/polynomial/hermite_e.py | 1 - numpy/polynomial/laguerre.py | 1 - numpy/polynomial/polyutils.py | 6 ++---- 5 files changed, 2 insertions(+), 9 deletions(-) (limited to 'numpy/polynomial') diff --git a/numpy/polynomial/__init__.py b/numpy/polynomial/__init__.py index e9ca387c3..1200d1c8d 100644 --- a/numpy/polynomial/__init__.py +++ b/numpy/polynomial/__init__.py @@ -15,8 +15,6 @@ information can be found in the docstring for the module of interest. """ from __future__ import division, absolute_import, print_function -import warnings - from .polynomial import Polynomial from .chebyshev import Chebyshev from .legendre import Legendre diff --git a/numpy/polynomial/hermite.py b/numpy/polynomial/hermite.py index c3e2d177c..1fd49d774 100644 --- a/numpy/polynomial/hermite.py +++ b/numpy/polynomial/hermite.py @@ -1568,7 +1568,6 @@ def hermcompanion(c): .. versionadded::1.7.0 """ - accprod = np.multiply.accumulate # c is a trimmed copy [c] = pu.as_series([c]) if len(c) < 2: diff --git a/numpy/polynomial/hermite_e.py b/numpy/polynomial/hermite_e.py index 24fb1135c..6e33dc0bc 100644 --- a/numpy/polynomial/hermite_e.py +++ b/numpy/polynomial/hermite_e.py @@ -1566,7 +1566,6 @@ def hermecompanion(c): .. versionadded::1.7.0 """ - accprod = np.multiply.accumulate # c is a trimmed copy [c] = pu.as_series([c]) if len(c) < 2: diff --git a/numpy/polynomial/laguerre.py b/numpy/polynomial/laguerre.py index 1b52f4398..8d2705d5d 100644 --- a/numpy/polynomial/laguerre.py +++ b/numpy/polynomial/laguerre.py @@ -1566,7 +1566,6 @@ def lagcompanion(c): .. versionadded::1.7.0 """ - accprod = np.multiply.accumulate # c is a trimmed copy [c] = pu.as_series([c]) if len(c) < 2: diff --git a/numpy/polynomial/polyutils.py b/numpy/polynomial/polyutils.py index 40a82992e..9348559ed 100644 --- a/numpy/polynomial/polyutils.py +++ b/numpy/polynomial/polyutils.py @@ -45,14 +45,12 @@ Functions """ from __future__ import division, absolute_import, print_function +import numpy as np + __all__ = [ 'RankWarning', 'PolyError', 'PolyDomainError', 'as_series', 'trimseq', 'trimcoef', 'getdomain', 'mapdomain', 'mapparms', 'PolyBase'] -import warnings -import numpy as np -import sys - # # Warnings and Exceptions # -- cgit v1.2.1