]> arthur.barton.de Git - bup.git/commitdiff
Minor fix for python 2.4.4 compatibility.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 10 Jan 2010 05:56:58 +0000 (00:56 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 10 Jan 2010 06:12:24 +0000 (01:12 -0500)
index.py

index 6d302bb7e5d9951db3b339d45dc33c47c793bb4f..9a746eb2ec464ade3411553b37a80d938ac7fae8 100644 (file)
--- a/index.py
+++ b/index.py
@@ -22,7 +22,7 @@ class Entry:
         self.tstart = tstart
         (self.dev, self.ctime, self.mtime, self.uid, self.gid,
          self.size, self.mode, self.gitmode, self.sha,
-         self.flags) = struct.unpack(INDEX_SIG, buffer(m, ofs, ENTLEN))
+         self.flags) = struct.unpack(INDEX_SIG, str(buffer(m, ofs, ENTLEN)))
 
     def __repr__(self):
         return ("(%s,0x%04x,%d,%d,%d,%d,%d,0x%04x)"