From: Evan Broder Date: Tue, 12 Aug 2008 07:22:04 +0000 (-0700) Subject: Update PyHesiodFS to use the new File class X-Git-Tag: 1.0.0~14 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-routefs.git/commitdiff_plain/4909cd3c77813b3c61f26fd6af4f3a0958cc92f4?hp=eab1fc366c14af6eafc02e1033588f297f4c7b55 Update PyHesiodFS to use the new File class --- diff --git a/routefs/examples/pyhesiodfs.py b/routefs/examples/pyhesiodfs.py index 0392bce..0a5aa3e 100755 --- a/routefs/examples/pyhesiodfs.py +++ b/routefs/examples/pyhesiodfs.py @@ -33,13 +33,13 @@ class PyHesiodFS(routefs.RouteFS): return routefs.Directory(self.cache.keys() + ['README.txt']) def getReadme(self, **kwargs): - return """ + return routefs.File(""" This is the pyHesiodFS FUSE automounter. To access a Hesiod filsys, just access /mit/name. If you're using the Finder, try pressing Cmd+Shift+G and then entering /mit/name -""" +""") if __name__ == '__main__': routefs.main(PyHesiodFS)