summaryrefslogtreecommitdiff
path: root/numpy/core/ma.py
diff options
context:
space:
mode:
authorTim Leslie <tim.leslie@gmail.com>2007-01-09 04:45:31 +0000
committerTim Leslie <tim.leslie@gmail.com>2007-01-09 04:45:31 +0000
commite56a09af9e696129b92e7487bccbc3713568fc5b (patch)
tree1257c10ae62f2847ac22f48e502eafeef7632820 /numpy/core/ma.py
parent4d9b87ec11dc268bb9069831deab466ffe47ad93 (diff)
downloadnumpy-e56a09af9e696129b92e7487bccbc3713568fc5b.tar.gz
clean up unused imports and bad whitespace
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r--numpy/core/ma.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py
index fc1e89d7b..420cbd72d 100644
--- a/numpy/core/ma.py
+++ b/numpy/core/ma.py
@@ -1683,7 +1683,6 @@ def average (a, axis=None, weights=None, returned = 0):
d = add.reduce(w, axis)
del w
elif wsh == (ash[axis],):
- ni = ash[axis]
r = [newaxis]*len(ash)
r[axis] = slice(None, None, 1)
w = eval ("w["+ repr(tuple(r)) + "] * ones(ash, float)")
@@ -1708,7 +1707,6 @@ def average (a, axis=None, weights=None, returned = 0):
n = add.reduce(a*w, axis)
d = add.reduce(w, axis)
elif wsh == (ash[axis],):
- ni = ash[axis]
r = [newaxis]*len(ash)
r[axis] = slice(None, None, 1)
w = eval ("w["+ repr(tuple(r)) + "] * masked_array(ones(ash, float), mask)")