From: Avery Pennarun Date: Sun, 10 Jan 2010 05:56:58 +0000 (-0500) Subject: Minor fix for python 2.4.4 compatibility. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=84ee77c355e798d0c805fc7fe6962e7e80e69145;p=packages%2Fb%2Fbup.git Minor fix for python 2.4.4 compatibility. --- diff --git a/index.py b/index.py index 6d302bb..9a746eb 100644 --- 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)"