summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polytemplate.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2014-01-26 17:16:10 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2014-05-04 21:06:17 +0200
commitf40831a53ff2d572f338b1445e40bc88a1167ce7 (patch)
tree3c48af9cc441a9c809d8ac995f659f391b81b6ce /numpy/polynomial/polytemplate.py
parent17e9ff8fd67f41f0328b3963d46bbbe849bf7fbb (diff)
downloadnumpy-f40831a53ff2d572f338b1445e40bc88a1167ce7.tar.gz
MAINT: Comparison deprecation followup fixes
Makes the identity check `a = np.array([np.nan], dtype=object)` `a == a`, etc. a deprecation/futurewarning instead of just changing it. Also fixes some smaller things.
Diffstat (limited to 'numpy/polynomial/polytemplate.py')
-rw-r--r--numpy/polynomial/polytemplate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/polynomial/polytemplate.py b/numpy/polynomial/polytemplate.py
index b0006407b..e68dd18ef 100644
--- a/numpy/polynomial/polytemplate.py
+++ b/numpy/polynomial/polytemplate.py
@@ -780,10 +780,10 @@ class $name(pu.PolyBase) :
"""
if domain is None:
domain = pu.getdomain(x)
- elif len(domain) == 0:
+ elif type(domain) is list and len(domain) == 0:
domain = $domain
- if len(window) == 0:
+ if type(window) is list and len(window) == 0:
window = $domain
xnew = pu.mapdomain(x, domain, window)