]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/compat.py
get: adjust for python 3 and test there
[bup.git] / lib / bup / compat.py
index e59f4d3880642db6f05d183b30b1ec81707dbf19..985d8ac4bd61be75e7d244b3a8536ddc3a592336 100644 (file)
@@ -74,6 +74,9 @@ if py3:
         """Return the concatenated bytes or memoryview arguments as bytes."""
         return b''.join(items)
 
+    def getcwd():
+        return fsencode(os.getcwd())
+
 else:  # Python 2
 
     def fsdecode(x):
@@ -83,7 +86,7 @@ else:  # Python 2
         return x
 
     from pipes import quote
-    from os import environ
+    from os import environ, getcwd
 
     from bup.py2raise import reraise