]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/xstat.py
Adjust metadata handling for python 3
[bup.git] / lib / bup / xstat.py
index cd71553e635548b9ea096e6c2a8991d3c011243e..461c932f15865a4611c6342313f9220ae4917bdb 100644 (file)
@@ -49,14 +49,14 @@ def fstime_to_timespec(ns):
     return nsecs_to_timespec(ns)
 
 
-def fstime_to_sec_str(fstime):
+def fstime_to_sec_bytes(fstime):
     (s, ns) = fstime_to_timespec(fstime)
     if(s < 0):
         s += 1
     if ns == 0:
-        return '%d' % s
+        return b'%d' % s
     else:
-        return '%d.%09d' % (s, ns)
+        return b'%d.%09d' % (s, ns)
 
 
 if _bup_utimensat: