summaryrefslogtreecommitdiff
path: root/fs/multifs.py
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-06-03 14:10:40 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-06-03 14:10:40 +0000
commit00abdcdb43051f9628ef1e729dae82674141af8a (patch)
tree4f345f93749dc6759545d1f50f6fb420d90459b2 /fs/multifs.py
parentcd89772f03be3aef0cb71ee3516e7214f6e8c833 (diff)
downloadpyfilesystem-00abdcdb43051f9628ef1e729dae82674141af8a.tar.gz
remove "if __main__" stuff from most modules
git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@151 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/multifs.py')
-rw-r--r--fs/multifs.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/fs/multifs.py b/fs/multifs.py
index 0f78a06..c295e61 100644
--- a/fs/multifs.py
+++ b/fs/multifs.py
@@ -226,27 +226,3 @@ class MultiFS(FS):
finally:
self._lock.release()
-
-if __name__ == "__main__":
-
- import fs
- import osfs
- osfs = osfs.OSFS('~/')
- import memoryfs
-
- mem_fs = memoryfs.MemoryFS()
- mem_fs.makedir('projects/test2', recursive=True)
- mem_fs.makedir('projects/A', recursive=True)
- mem_fs.makedir('projects/A/B', recursive=True)
-
-
- mem_fs.open("projects/test2/readme.txt", 'w').write("Hello, World!")
- mem_fs.open("projects/A/readme.txt", 'w').write("\nSecond Line")
-
- multifs = MultiFS()
- multifs.addfs("osfs", osfs)
- multifs.addfs("mem_fs", mem_fs)
-
- import browsewin
-
- browsewin.browse(multifs)