Skip to content
Snippets Groups Projects
Commit 1db25526 authored by Massimiliano Culpo's avatar Massimiliano Culpo Committed by Todd Gamblin
Browse files

fix : stops infinite recursion for python 2.6 (#1823)

parent d848559f
Branches
No related tags found
No related merge requests found
...@@ -531,8 +531,9 @@ def __getattr__(self, item): ...@@ -531,8 +531,9 @@ def __getattr__(self, item):
"""Delegate to self.package if the attribute is not in the spec""" """Delegate to self.package if the attribute is not in the spec"""
# This line is to avoid infinite recursion in case package is # This line is to avoid infinite recursion in case package is
# not present among self attributes # not present among self attributes
package = super(Spec, self).__getattribute__('package') if item.endswith('libs'):
return getattr(package, item) return getattr(self.package, item)
raise AttributeError()
def get_dependency(self, name): def get_dependency(self, name):
dep = self._dependencies.get(name) dep = self._dependencies.get(name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment