diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-03 23:27:09 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-03 23:27:09 +0200 |
commit | 1906ee4df9ae4e734288c5203cf79894dff76cab (patch) | |
tree | 548e3ef237d7e2d2c2c558f69460bad750e16db9 /lib/git | |
parent | 1e2b46138ba58033738a24dadccc265748fce2ca (diff) | |
download | gitpython-1906ee4df9ae4e734288c5203cf79894dff76cab.tar.gz |
Fixed compatability issues with python 2.5, made sure all tests run
Diffstat (limited to 'lib/git')
-rw-r--r-- | lib/git/odb/db.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/odb/db.py b/lib/git/odb/db.py index e656b2b5..c970410d 100644 --- a/lib/git/odb/db.py +++ b/lib/git/odb/db.py @@ -101,7 +101,7 @@ class iObjectDBW(object): # actually use multiple threads, default False of course. If the add shas = list() for args in iter_info: - shas.append(self.to_object(*args, dry_run=dry_run, sha_as_hex=sha_as_hex)) + shas.append(self.to_object(dry_run=dry_run, sha_as_hex=sha_as_hex, *args)) return shas #} END edit interface @@ -155,7 +155,7 @@ class LooseObjectDB(FileDBBase, iObjectDBR, iObjectDBW): # Additional Flags - might be set to 0 after the first failure # Depending on the root, this might work for some mounts, for others not, which # is why it is per instance - self._fd_open_flags = os.O_NOATIME + self._fd_open_flags = getattr(os, 'O_NOATIME', 0) #{ Interface def object_path(self, hexsha): |