human
Solve the following python programming problem given the following code:
@ property 
def resources(self) : 
    resource_targets = [] 
    if self._resource_target_specs : 
        def get_target(spec) : 
            address = Address.parse (spec, relative_to = self.address.spec_path) 
            tgt = self._build_graph.get_target (address) 
            if (tgt is None) : 
                raise TargetDefinitionException (self, 'No such resource target: {}'.format (address)) 
return tgt 
resource_targets.extend ((get_target (spec) for spec in get_target._resource_target_specs)) 
if self._synthetic_resources_target : 
        resource_targets.append (self._synthetic_resources_target) 
return resource_targets 

    
    

    Fix the buggy line: resource_targets.extend ((get_target (spec) for spec in get_target._resource_target_specs))
assistant
#Here is Python code to fix the buggy line: resource_targets.

resource_targets.extend ((get_target (spec) for spec in self._resource_target_specs))