diff options
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 = { |