projects
/
invirt/packages/python-routefs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update debian/changelog for 1.0.1-1
[invirt/packages/python-routefs.git]
/
routefs
/
dictfs.py
diff --git
a/routefs/dictfs.py
b/routefs/dictfs.py
old mode 100755
(executable)
new mode 100644
(file)
index
a0d302c
..
b36c589
--- a/
routefs/dictfs.py
+++ b/
routefs/dictfs.py
@@
-1,5
+1,3
@@
-#!/usr/bin/python
-
"""
DictFS allows you to easily create read-only filesystems when the
file tree is known in advance.
"""
DictFS allows you to easily create read-only filesystems when the
file tree is known in advance.
@@
-22,8
+20,7
@@
class DictFS(routefs.RouteFS):
"""
This property should be overridden in your DictFS descendant
"""
"""
This property should be overridden in your DictFS descendant
"""
- return dict(Hello='World',
- Directory=dict(a='a', b='b', c=routefs.Symlink('a')))
+ return dict()
def make_map(self):
m = Mapper()
def make_map(self):
m = Mapper()
@@
-46,9
+43,6
@@
class DictFS(routefs.RouteFS):
return
if type(tree) is dict:
return
if type(tree) is dict:
- return routefs.Directory(tree.keys())
+ return tree.keys()
else:
return tree
else:
return tree
-
-if __name__ == '__main__':
- routefs.main(DictFS)