]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/compat.py
fuse: adjust for python 3 and test there
[bup.git] / lib / bup / compat.py
index 03041f35de9d08224edb18172137a87a2d69dd38..e59f4d3880642db6f05d183b30b1ec81707dbf19 100644 (file)
@@ -25,7 +25,7 @@ if py3:
               file=sys.stderr)
         sys.exit(2)
 
-    from os import fsencode
+    from os import fsdecode, fsencode
     from shlex import quote
     input = input
     range = range
@@ -76,6 +76,9 @@ if py3:
 
 else:  # Python 2
 
+    def fsdecode(x):
+        return x
+
     def fsencode(x):
         return x