From 6507e4e14337a929d4f3986a90efd8674d963a3f Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 5 Jul 2011 18:17:44 +0200 Subject: fixes python 2.6 compatibility issues --- git/db/py/base.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'git/db/py/base.py') 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 ): -- cgit v1.2.1