summaryrefslogtreecommitdiff
path: root/scipy/base/getlimits.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-11-08 08:13:02 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-11-08 08:13:02 +0000
commit94d041cadb5f34c55d5496217f4f42065e109b00 (patch)
tree68a0e22c35b0705205ca7968cac606ed0a81d671 /scipy/base/getlimits.py
parentb6502bf97ab39138a491378e29a7e7e38e31bd9c (diff)
downloadnumpy-94d041cadb5f34c55d5496217f4f42065e109b00.tar.gz
Fixed another leak.
Diffstat (limited to 'scipy/base/getlimits.py')
-rw-r--r--scipy/base/getlimits.py3
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 = {