summaryrefslogtreecommitdiff
path: root/fs/tempfs.py
diff options
context:
space:
mode:
authorwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2010-12-17 00:09:34 +0000
committerwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2010-12-17 00:09:34 +0000
commitdc2e9a34c8d077058b89609183903fbc474fad3d (patch)
treecfcd204009b9ae254e4ccf7a3490d59065253d4b /fs/tempfs.py
parent3e149d2fffc338b7eb66cb7f4d25aa94e0fd6944 (diff)
downloadpyfilesystem-git-dc2e9a34c8d077058b89609183903fbc474fad3d.tar.gz
Fixed some broken tests
Diffstat (limited to 'fs/tempfs.py')
-rw-r--r--fs/tempfs.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/tempfs.py b/fs/tempfs.py
index 793a29c..c82b81c 100644
--- a/fs/tempfs.py
+++ b/fs/tempfs.py
@@ -54,12 +54,12 @@ class TempFS(OSFS):
def __unicode__(self):
return u'<TempFS: %s>' % self._temp_dir
- def __setstate__(self, state):
- state = super(TempFS, self).__setstate__(state)
- self._temp_dir = tempfile.mkdtemp(self.identifier or "TempFS", dir=self.temp_dir)
- super(TempFS, self).__init__(self._temp_dir,
- dir_mode=self.dir_mode,
- thread_synchronize=self.thread_synchronize)
+# def __setstate__(self, state):
+# state = super(TempFS, self).__setstate__(state)
+# self._temp_dir = tempfile.mkdtemp(self.identifier or "TempFS", dir=self.temp_dir)
+# super(TempFS, self).__init__(self._temp_dir,
+# dir_mode=self.dir_mode,
+# thread_synchronize=self.thread_synchronize)
def close(self):
"""Removes the temporary directory.