summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
Diffstat (limited to 'git')
-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 ):