diff options
Diffstat (limited to 'numpy/core/memmap.py')
-rw-r--r-- | numpy/core/memmap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py index f4dc0b463..8e9faa5b0 100644 --- a/numpy/core/memmap.py +++ b/numpy/core/memmap.py @@ -80,7 +80,7 @@ class memmap(ndarray): return self def __array_finalize__(self, obj): - if not isinstance(obj, memmap): + if obj is not None and not isinstance(obj, memmap): raise ValueError, "Cannot create a memmap array that way" self._mmap = None |