diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-11-08 08:13:02 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-11-08 08:13:02 +0000 |
commit | 94d041cadb5f34c55d5496217f4f42065e109b00 (patch) | |
tree | 68a0e22c35b0705205ca7968cac606ed0a81d671 /scipy/base/getlimits.py | |
parent | b6502bf97ab39138a491378e29a7e7e38e31bd9c (diff) | |
download | numpy-94d041cadb5f34c55d5496217f4f42065e109b00.tar.gz |
Fixed another leak.
Diffstat (limited to 'scipy/base/getlimits.py')
-rw-r--r-- | scipy/base/getlimits.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scipy/base/getlimits.py b/scipy/base/getlimits.py index a4f8d5369..90bb69893 100644 --- a/scipy/base/getlimits.py +++ b/scipy/base/getlimits.py @@ -10,8 +10,7 @@ from numeric import array def _frz(a): """fix rank-0 --> rank-1""" - if len(a.shape) == 0: - a = a.reshape((1,)) + if a.ndim == 0: a.shape = (1,) return a _convert_to_float = { |