Skip to content

Commit

Permalink
BUG: Explicit imports to avoid confusing 2to3 tool for Py3 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
scottza committed Jul 16, 2012
1 parent 461d5be commit 76b700c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions numpy/polynomial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"""
import warnings

from polynomial import Polynomial
from chebyshev import Chebyshev
from legendre import Legendre
from hermite import Hermite
from hermite_e import HermiteE
from laguerre import Laguerre
from numpy.polynomial.polynomial import Polynomial
from numpy.polynomial.chebyshev import Chebyshev
from numpy.polynomial.legendre import Legendre
from numpy.polynomial.hermite import Hermite
from numpy.polynomial.hermite_e import HermiteE
from numpy.polynomial.laguerre import Laguerre

from numpy.testing import Tester
test = Tester().test
Expand Down
2 changes: 1 addition & 1 deletion numpy/polynomial/_chebyshev.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def cheb2poly(c) :
array([ -2., -8., 4., 12.])
"""
from polynomial import polyadd, polysub, polymulx
from numpy.polynomial.polynomial import polyadd, polysub, polymulx

[c] = pu.as_series([c])
n = len(c)
Expand Down
2 changes: 1 addition & 1 deletion numpy/polynomial/_hermite.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def herm2poly(c) :
array([ 0., 1., 2., 3.])
"""
from polynomial import polyadd, polysub, polymulx
from numpy.polynomial.polynomial import polyadd, polysub, polymulx

[c] = pu.as_series([c])
n = len(c)
Expand Down
2 changes: 1 addition & 1 deletion numpy/polynomial/_hermite_e.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def herme2poly(c) :
array([ 0., 1., 2., 3.])
"""
from polynomial import polyadd, polysub, polymulx
from numpy.polynomial.polynomial import polyadd, polysub, polymulx

[c] = pu.as_series([c])
n = len(c)
Expand Down
2 changes: 1 addition & 1 deletion numpy/polynomial/_laguerre.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def lag2poly(c) :
array([ 0., 1., 2., 3.])
"""
from polynomial import polyadd, polysub, polymulx
from numpy.polynomial.polynomial import polyadd, polysub, polymulx

[c] = pu.as_series([c])
n = len(c)
Expand Down
2 changes: 1 addition & 1 deletion numpy/polynomial/_legendre.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def leg2poly(c) :
"""
from polynomial import polyadd, polysub, polymulx
from numpy.polynomial.polynomial import polyadd, polysub, polymulx

[c] = pu.as_series([c])
n = len(c)
Expand Down

0 comments on commit 76b700c

Please sign in to comment.