summaryrefslogtreecommitdiff
path: root/numpy/core/memmap.py
diff options
context:
space:
mode:
authorrgommers <ralf.gommers@googlemail.com>2011-03-06 22:40:11 +0800
committerrgommers <ralf.gommers@googlemail.com>2011-03-11 12:27:01 +0800
commita4fed55568a7bcc92bca0c3513e4c37dd5a47348 (patch)
treee393dda65d7f54b6296ae2cabad6793b2da6905f /numpy/core/memmap.py
parenta22b32bf78fdb54c5df716bfa7962f40b9e4e75c (diff)
downloadnumpy-a4fed55568a7bcc92bca0c3513e4c37dd5a47348.tar.gz
DEP: remove deprecated methods sync() and close() from memmap.
Diffstat (limited to 'numpy/core/memmap.py')
-rw-r--r--numpy/core/memmap.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py
index 71f5de93c..844e13c4e 100644
--- a/numpy/core/memmap.py
+++ b/numpy/core/memmap.py
@@ -278,11 +278,6 @@ class memmap(ndarray):
if self._mmap is not None:
self._mmap.flush()
- def sync(self):
- """This method is deprecated, use `flush`."""
- warnings.warn("Use ``flush``.", DeprecationWarning)
- self.flush()
-
def _close(self):
"""Close the memmap file. Only do this when deleting the object."""
if self.base is self._mmap:
@@ -292,11 +287,6 @@ class memmap(ndarray):
self._mmap.close()
self._mmap = None
- def close(self):
- """Close the memmap file. Does nothing."""
- warnings.warn("``close`` is deprecated on memmap arrays. Use del",
- DeprecationWarning)
-
def __del__(self):
# We first check if we are the owner of the mmap, rather than
# a view, so deleting a view does not call _close