fix : stops infinite recursion for python 2.6 (#1823)
This commit is contained in:
		 Massimiliano Culpo
					Massimiliano Culpo
				
			
				
					committed by
					
						 Todd Gamblin
						Todd Gamblin
					
				
			
			
				
	
			
			
			 Todd Gamblin
						Todd Gamblin
					
				
			
						parent
						
							d848559f70
						
					
				
				
					commit
					1db2552644
				
			| @@ -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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user