From e56a09af9e696129b92e7487bccbc3713568fc5b Mon Sep 17 00:00:00 2001 From: Tim Leslie Date: Tue, 9 Jan 2007 04:45:31 +0000 Subject: clean up unused imports and bad whitespace --- numpy/core/ma.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'numpy/core/ma.py') 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)") -- cgit v1.2.1