summaryrefslogtreecommitdiff
path: root/git/db/py/base.py
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/py/base.py
parentbf638fd0c389e3eec0c054dfb97d3a57abab918d (diff)
downloadgitpython-6507e4e14337a929d4f3986a90efd8674d963a3f.tar.gz
fixes python 2.6 compatibility issues
Diffstat (limited to 'git/db/py/base.py')
-rw-r--r--git/db/py/base.py12
1 files changed, 10 insertions, 2 deletions
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 ):