summaryrefslogtreecommitdiff
path: root/git/db
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-07-05 18:17:44 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-07-05 18:17:44 +0200
commit6507e4e14337a929d4f3986a90efd8674d963a3f (patch)
tree72e5b3eb25a58189ef20a1ff60433a5f729644fd /git/db
parentbf638fd0c389e3eec0c054dfb97d3a57abab918d (diff)
downloadgitpython-6507e4e14337a929d4f3986a90efd8674d963a3f.tar.gz
fixes python 2.6 compatibility issues
Diffstat (limited to 'git/db')
-rw-r--r--git/db/interface.py6
-rw-r--r--git/db/py/base.py12
2 files changed, 15 insertions, 3 deletions
diff --git a/git/db/interface.py b/git/db/interface.py
index a4c05265..803f7769 100644
--- a/git/db/interface.py
+++ b/git/db/interface.py
@@ -150,7 +150,11 @@ class RootPathDB(object):
:note: The base will not perform any accessablity checking as the base
might not yet be accessible, but become accessible before the first
access."""
- super(RootPathDB, self).__init__(root_path)
+ try:
+ super(RootPathDB, self).__init__(root_path)
+ except TypeError:
+ pass
+ # END handle py 2.6
#{ Interface
def root_path(self):
diff --git a/git/db/py/base.py b/git/db/py/base.py
index 2fdbd202..2c21c136 100644
--- a/git/db/py/base.py
+++ b/git/db/py/base.py
@@ -74,7 +74,11 @@ class PureObjectDBR(ObjectDBR):
class PureObjectDBW(ObjectDBW):
def __init__(self, *args, **kwargs):
- super(PureObjectDBW, self).__init__(*args, **kwargs)
+ try:
+ super(PureObjectDBW, self).__init__(*args, **kwargs)
+ except TypeError:
+ pass
+ #END handle py 2.6
self._ostream = None
#{ Edit Interface
@@ -352,7 +356,11 @@ class PureConfigurationMixin(ConfigurationMixin):
def __init__(self, *args, **kwargs):
"""Verify prereqs"""
- super(PureConfigurationMixin, self).__init__(*args, **kwargs)
+ try:
+ super(PureConfigurationMixin, self).__init__(*args, **kwargs)
+ except TypeError:
+ pass
+ #END handle code-breaking change in python 2.6
assert hasattr(self, 'git_dir')
def _path_at_level(self, level ):