]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/cmd/fuse.py
Remove Client __del__ in favor of context management
[bup.git] / lib / bup / cmd / fuse.py
index 96bf6179ebe4800b05a8558d69011ca8b8a8386d..385bea9f3a8d0f2d8865db310afce464f97a8f22 100755 (executable)
@@ -27,7 +27,7 @@ if sys.version_info[0] > 2:
         sys.exit(2)
 
 from bup import options, git, vfs, xstat
-from bup.compat import argv_bytes, fsdecode, py_maj
+from bup.compat import argv_bytes, fsdecode
 from bup.helpers import log
 from bup.repo import LocalRepo
 
@@ -43,7 +43,7 @@ class BupFs(fuse.Fuse):
         self.repo = repo
         self.verbose = verbose
         self.fake_metadata = fake_metadata
-    
+
     def getattr(self, path):
         path = argv_bytes(path)
         if self.verbose > 0:
@@ -106,6 +106,7 @@ class BupFs(fuse.Fuse):
         # Return None since read doesn't need the file atm...
         # If we *do* return the file, it'll show up as the last argument
         #return vfs.fopen(repo, item)
+        return None
 
     def read(self, path, size, offset):
         path = argv_bytes(path)