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/hermite.py2
-rw-r--r--numpy/polynomial/hermite_e.py2
-rw-r--r--numpy/polynomial/laguerre.py2
-rw-r--r--numpy/polynomial/legendre.py2
-rw-r--r--numpy/polynomial/polynomial.py2
6 files changed, 6 insertions, 6 deletions
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py
index afeafcb68..9576a4697 100644
--- a/numpy/polynomial/chebyshev.py
+++ b/numpy/polynomial/chebyshev.py
@@ -2012,4 +2012,4 @@ def chebpts2(npts):
# Chebyshev series class
#
-exec polytemplate.substitute(name='Chebyshev', nick='cheb', domain='[-1,1]')
+exec(polytemplate.substitute(name='Chebyshev', nick='cheb', domain='[-1,1]'))
diff --git a/numpy/polynomial/hermite.py b/numpy/polynomial/hermite.py
index 2beb848ae..b410902ea 100644
--- a/numpy/polynomial/hermite.py
+++ b/numpy/polynomial/hermite.py
@@ -1747,4 +1747,4 @@ def hermweight(x):
# Hermite series class
#
-exec polytemplate.substitute(name='Hermite', nick='herm', domain='[-1,1]')
+exec(polytemplate.substitute(name='Hermite', nick='herm', domain='[-1,1]'))
diff --git a/numpy/polynomial/hermite_e.py b/numpy/polynomial/hermite_e.py
index c183a5a86..4d3bcd338 100644
--- a/numpy/polynomial/hermite_e.py
+++ b/numpy/polynomial/hermite_e.py
@@ -1743,4 +1743,4 @@ def hermeweight(x):
# HermiteE series class
#
-exec polytemplate.substitute(name='HermiteE', nick='herme', domain='[-1,1]')
+exec(polytemplate.substitute(name='HermiteE', nick='herme', domain='[-1,1]'))
diff --git a/numpy/polynomial/laguerre.py b/numpy/polynomial/laguerre.py
index f0c1268bf..7b77ea819 100644
--- a/numpy/polynomial/laguerre.py
+++ b/numpy/polynomial/laguerre.py
@@ -1739,4 +1739,4 @@ def lagweight(x):
# Laguerre series class
#
-exec polytemplate.substitute(name='Laguerre', nick='lag', domain='[-1,1]')
+exec(polytemplate.substitute(name='Laguerre', nick='lag', domain='[-1,1]'))
diff --git a/numpy/polynomial/legendre.py b/numpy/polynomial/legendre.py
index 0efd13ffa..5b88b6287 100644
--- a/numpy/polynomial/legendre.py
+++ b/numpy/polynomial/legendre.py
@@ -1765,4 +1765,4 @@ def legweight(x):
# Legendre series class
#
-exec polytemplate.substitute(name='Legendre', nick='leg', domain='[-1,1]')
+exec(polytemplate.substitute(name='Legendre', nick='leg', domain='[-1,1]'))
diff --git a/numpy/polynomial/polynomial.py b/numpy/polynomial/polynomial.py
index 8d7251b19..e174fdd96 100644
--- a/numpy/polynomial/polynomial.py
+++ b/numpy/polynomial/polynomial.py
@@ -1489,4 +1489,4 @@ def polyroots(c):
# polynomial class
#
-exec polytemplate.substitute(name='Polynomial', nick='poly', domain='[-1,1]')
+exec(polytemplate.substitute(name='Polynomial', nick='poly', domain='[-1,1]'))