From 08457a7a6b6ad4f518fad0d5bca094a2b5b38fbe Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 9 Jul 2010 12:18:38 +0200 Subject: Added python 2.4 support: Repo will now use the original GitCmdObjectDB in python 2.4, as the pure python implementation cannot work without memory maps --- lib/git/db.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/git/db.py') diff --git a/lib/git/db.py b/lib/git/db.py index 6339569f..b1c65377 100644 --- a/lib/git/db.py +++ b/lib/git/db.py @@ -34,13 +34,13 @@ class GitCmdObjectDB(LooseObjectDB): self._git = git def info(self, sha): - t = self._git.get_object_header(bin_to_hex(sha)) - return OInfo(*t) + hexsha, typename, size = self._git.get_object_header(bin_to_hex(sha)) + return OInfo(hex_to_bin(hexsha), typename, size) def stream(self, sha): """For now, all lookup is done by git itself""" - t = self._git.stream_object_data(bin_to_hex(sha)) - return OStream(*t) + hexsha, typename, size, stream = self._git.stream_object_data(bin_to_hex(sha)) + return OStream(hex_to_bin(hexsha), typename, size, stream) # { Interface -- cgit v1.2.3