diff options
author | Travis E. Oliphant <teoliphant@gmail.com> | 2013-01-10 18:13:45 -0600 |
---|---|---|
committer | Travis E. Oliphant <teoliphant@gmail.com> | 2013-01-10 18:13:45 -0600 |
commit | 853eae4ef4b0b4e567924c964a1663789e597538 (patch) | |
tree | 4a28b94e8e08025c2e0eb7aac0d666fe7f24f161 /numpy/lib/index_tricks.py | |
parent | ae0a504b78690aafe120bf88eac65be9107b2f5b (diff) | |
download | numpy-853eae4ef4b0b4e567924c964a1663789e597538.tar.gz |
Use super instead of direct access to inheritance.
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r-- | numpy/lib/index_tricks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index 6a589a299..139883847 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -539,7 +539,7 @@ class ndindex(object): yield () return zerodim_gen() else: - return object.__new__(cls, *shape) + return super(ndindex, cls).__new__(cls) def __init__(self, *shape): x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape)) |